|
EzC
|
Macro for assertions when debugging. More...
Go to the source code of this file.
Macros | |
| #define | assert(expr) ((void) ((expr) || (ezc_assert(__FILE__, __LINE__, #expr), 0))) |
| Macro for assertions when debugging. More... | |
Macro for assertions when debugging.
| #define assert | ( | expr | ) | ((void) ((expr) || (ezc_assert(__FILE__, __LINE__, #expr), 0))) |
Macro for assertions when debugging.
Like normal assertions, EzC's assert expands to an expression and can be toggled via NDEBUG. assert will attempt to write to both stderr and a *.assert text file.
| expr | Expression to test. As is standard, the assertion is triggered when the expression evaluates to 0. |
1.8.15