summaryrefslogtreecommitdiff
path: root/toc.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-01-10 23:16:58 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-01-10 23:16:58 -0500
commit2b3259e99d2dc75706aea4ce2112e0e1ec5aedf7 (patch)
treebd8ac918c1199533275e381eaba2de28bc226f96 /toc.c
parent56a9ba5ea53a5d0b6268939d6a6e89837c2e4658 (diff)
realized i need to be able to export untyped expressions!
Diffstat (limited to 'toc.c')
-rw-r--r--toc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/toc.c b/toc.c
index 1f6472d..6eb6feb 100644
--- a/toc.c
+++ b/toc.c
@@ -27,6 +27,13 @@
#define inline
#endif
+#if __STDC_VERSION__ >= 201112
+#define possibly_static_assert(cond) static_assert(cond, "Assertion " #cond " failed.")
+#else
+#define possibly_static_assert assert
+#endif
+
+
#include "types.h"
/* forward declarations for debugging */