Gnulib module: assert-h
See also the Gnulib modules
Portability problems fixed by Gnulib:
_Static_assertdo not allow the second string-literal argument to be omitted. For example, GCC versions before 9.1 do not support the single-argument
static_assertthat was standardized by C2x and C++17.
_Static_assertat all. For example, GCC versions before 4.6 do not support
_Static_assert, and G++ versions before 4.3 do not support
static_assert, which was standardized by C11 and C++11.
Portability problems not fixed by Gnulib:
static_assertare keywords that can be used without including
<assert.h>. The Gnulib substitutes are macros that require including
_Static_assertcan also be used within a
unionspecifier, in place of an ordinary declaration of a member of the struct or union. The Gnulib substitute can be used only as an ordinary declaration.
assertcan be applied to any scalar expression. In C89, the argument to
assertis of type