From 805f95eac61ef17d7ec3f87dda1dfbc932951dee Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Wed, 4 Sep 2013 10:06:07 +0000 Subject: remove the dependency on the HAVE_STATEMENT_EXPRESSIONS flag. This reduces the dependency on the ./configure script --- src/runtime/c/gu/exn.h | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'src/runtime/c/gu/exn.h') 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); /** @} */ -- cgit v1.2.3