forked from GitHub/gf-core
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;
|
||||
}
|
||||
|
||||
bool
|
||||
gu_exn_is_raised(GuExn* err) {
|
||||
return err && (err->state == GU_EXN_RAISED);
|
||||
}
|
||||
|
||||
void
|
||||
gu_exn_block(GuExn* err)
|
||||
{
|
||||
|
||||
@@ -75,10 +75,8 @@ gu_new_exn(GuExn* parent, GuKind* catch_kind, GuPool* pool);
|
||||
|
||||
|
||||
|
||||
static inline bool
|
||||
gu_exn_is_raised(GuExn* err) {
|
||||
return err && (err->state == GU_EXN_RAISED);
|
||||
}
|
||||
bool
|
||||
gu_exn_is_raised(GuExn* err);
|
||||
|
||||
static inline void
|
||||
gu_exn_clear(GuExn* err) {
|
||||
|
||||
Reference in New Issue
Block a user