diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-28 14:41:58 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-28 14:41:58 -0500 |
commit | fb2a0b9998a599f9e8a9a1e911fd43345778f6ef (patch) | |
tree | 5c3ebf1b7afa1654ad1f9e9db7d765378044e3c8 /base.h | |
parent | 5662c988fa199d071fdfd9e9defd8e09a3486b0c (diff) |
:split-swap
Diffstat (limited to 'base.h')
-rw-r--r-- | base.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -32,6 +32,12 @@ #include <assert.h> #include <uchar.h> +#if !__TINYC__ && __STDC_VERSION__ >= 201112 +#define static_assert_if_possible(cond) _Static_assert(cond, "Static assertion failed"); +#else +#define static_assert_if_possible(cond) +#endif + typedef uint8_t u8; typedef uint16_t u16; typedef uint32_t u32; |