P99
|
◆ static_assert
Value:
extern char const p00_compiletime_assert[ \
sizeof((void const*[3*(!!(EXPR)) - 1]){ \
&p00_compiletime_assert, \
]
Evaluate expression EXPR at compile time and ensure that it is fulfilled. The expression must be given as the first argument. The second argument is a diagnostic string that should be part of the diagnostic message when the assertion fails. Not all compilers give a useful message when an assertion is not fulfilled, but all should give at least the line number and stop compilation.
Definition at line 695 of file p99_compiler.h. |