From fb2a0b9998a599f9e8a9a1e911fd43345778f6ef Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sun, 28 Feb 2021 14:41:58 -0500 Subject: :split-swap --- base.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'base.h') diff --git a/base.h b/base.h index c2cd80d..8994daf 100644 --- a/base.h +++ b/base.h @@ -32,6 +32,12 @@ #include #include +#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; -- cgit v1.2.3