summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-10-28 06:01:35 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-10-28 06:01:35 -0700
commit2b91729a138ded1c0d5949072d1e723783fd5f90 (patch)
tree4f1690c25cee8119b171e8888c0184fe709bad50 /lib.h
parent422a4cde1940f5d63e349e73e7241c6e2e28b253 (diff)
downloadtxr-2b91729a138ded1c0d5949072d1e723783fd5f90.tar.gz
txr-2b91729a138ded1c0d5949072d1e723783fd5f90.tar.bz2
txr-2b91729a138ded1c0d5949072d1e723783fd5f90.zip
Move noreturn macro.
* lib.h (noreturn): Defined here. * unwind.h (noreturn): Removed from here.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index f2ce5f9b..b96ae19d 100644
--- a/lib.h
+++ b/lib.h
@@ -49,6 +49,12 @@ typedef int_ptr_t cnum;
#define PTR_BIT (SIZEOF_PTR * CHAR_BIT)
+#ifdef __GNUC__
+#define noreturn __attribute__((noreturn))
+#else
+#define noreturn
+#endif
+
typedef enum type {
NIL, NUM = TAG_NUM, CHR = TAG_CHR, LIT = TAG_LIT, CONS,
STR, SYM, PKG, FUN, VEC, LCONS, LSTR, COBJ, ENV,