diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-02-25 20:35:46 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-02-25 20:35:46 -0500 |
commit | 19eafbc01a492e8f1df25cef52678ed8f76d3e63 (patch) | |
tree | e818784215d9f7873e9495f003dd4cdaa09d5b63 /toc.c | |
parent | b1c2b4bcabfd3ff01921e2601d41a33b40ec1f3b (diff) |
fixed bugs with new arg order system
also now struct parameters are "officially" part of the language
Diffstat (limited to 'toc.c')
-rw-r--r-- | toc.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -34,9 +34,14 @@ #endif #if __STDC_VERSION__ >= 201112 +#ifdef __GNUC__ +/* GCC supports non-string literals as the message for a static assertion */ #define possibly_static_assert(cond) static_assert(cond, "Assertion " #cond " failed.") #else -#define possibly_static_assert assert +#define possibly_static_assert(cond) static_assert(cond, "Assertion failed") +#endif +#else +#define possibly_static_assert(cond) assert(cond) #endif |