1
0
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:
kr.angelov
2013-11-01 16:38:16 +00:00
parent d454165f24
commit 8073f9abf5
2 changed files with 7 additions and 4 deletions

View File

@@ -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)
{

View File

@@ -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) {