diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2013-09-04 10:06:07 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2013-09-04 10:06:07 +0000 |
| commit | 805f95eac61ef17d7ec3f87dda1dfbc932951dee (patch) | |
| tree | 62ab374454b87aa4d7d04bbee18ead8a4cbace37 /src/runtime/c/gu/exn.h | |
| parent | ae87c3d272104a933d148a544c9eab15865c1758 (diff) | |
remove the dependency on the HAVE_STATEMENT_EXPRESSIONS flag. This reduces the dependency on the ./configure script
Diffstat (limited to 'src/runtime/c/gu/exn.h')
| -rw-r--r-- | src/runtime/c/gu/exn.h | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/src/runtime/c/gu/exn.h b/src/runtime/c/gu/exn.h index 36e52917f..9ee70438a 100644 --- a/src/runtime/c/gu/exn.h +++ b/src/runtime/c/gu/exn.h @@ -38,10 +38,10 @@ struct GuExnData { /// The pool that the exception value should be allocated from. - GuPool* const pool; + GuPool* pool; /// The exception value. - const void* data; + void* data; }; struct GuExn { @@ -146,10 +146,6 @@ gu_exn_raise_debug_(GuExn* err, GuType* type, } \ GU_END -#define gu_raise_i(error_, t_, ...) \ - gu_raise_new(error_, t_, gu_raise_pool_, gu_new_i(gu_raise_pool_, t_, __VA_ARGS__)) - - /// Check the status of the current exception frame static inline bool gu_ok(GuExn* exn) { @@ -177,21 +173,8 @@ typedef int GuErrno; extern GU_DECLARE_TYPE(GuErrno, signed); - - -#define gu_raise_errno(error_) \ - gu_raise_i(error_, GuErrno, errno) - -#if 0 - -typedef void (*GuExnPrintFn)(GuFn* clo, void* err, FILE* out); - -extern GuTypeTable gu_exn_default_printer; - void -gu_exn_print(GuExn* err, FILE* out, GuTypeMap printer_map); - -#endif +gu_raise_errno(GuExn* err); /** @} */ |
