assert
From cppreference.com
| Defined in header <cassert>
|
||
| Disabled assertion |
||
| (1) | ||
| #define assert(condition) ((void)0) |
(until C++26) | |
| #define assert(...) ((void)0) |
(since C++26) | |
| Enabled assertion |
||
| (2) | ||
| #define assert(condition) /* unspecified */ |
(until C++26) | |
| #define assert(...) /* unspecified */ |
(since C++26) | |
The definition of the macro assert depends on another macro, NDEBUG, which is not defined by the standard library.
1) If NDEBUG is defined as a macro name at the point in the source code where