summaryrefslogtreecommitdiff
path: root/toc.c
diff options
context:
space:
mode:
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 */