1 | #include <assert.h> |
---|---|
2 | |
3 | #if (defined(DINGUX) || defined(__DJGPP__)) && !defined(static_assert) |
4 | #define static_assert _Static_assert |
5 | #endif |
6 | |
7 | #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 5 |
8 | #define static_assert__(x,line) static char stat_ass ## line[(x) ? +1 : -1] |
9 | #define static_assert_(x,line) static_assert__(x,line) |
10 | #define static_assert(x,y) static_assert_(x, __LINE__) |
11 | #endif |
12 |