mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 11:19:32 -06:00
make gu_exn_is_raised non inlined. this is useful to make it callable from Haskell
This commit is contained in:
@@ -15,6 +15,11 @@ gu_new_exn(GuExn* parent, GuKind* catch, GuPool* pool)
|
|||||||
return exn;
|
return exn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
gu_exn_is_raised(GuExn* err) {
|
||||||
|
return err && (err->state == GU_EXN_RAISED);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gu_exn_block(GuExn* err)
|
gu_exn_block(GuExn* err)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -75,10 +75,8 @@ gu_new_exn(GuExn* parent, GuKind* catch_kind, GuPool* pool);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
static inline bool
|
bool
|
||||||
gu_exn_is_raised(GuExn* err) {
|
gu_exn_is_raised(GuExn* err);
|
||||||
return err && (err->state == GU_EXN_RAISED);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
gu_exn_clear(GuExn* err) {
|
gu_exn_clear(GuExn* err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user