Defines macros used for assertions. More...
#include <iostream>#include <cstdlib>
Include dependency graph for assert.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | _BASIS_ASSERT_H |
| #define | assert(condition) |
| Assertion without custom message. More... | |
| #define | ASSERT(condition, message) |
| Assertion with custom message. More... | |
Defines macros used for assertions.
Definition in file assert.h.
| #define assert | ( | condition | ) |
Assertion without custom message.
The assertion is only checked if NDEBUG is defined.
Example:
| #define ASSERT | ( | condition, | |
| message | |||
| ) |
Assertion with custom message.
The assertion is only checked if NDEBUG is defined.
Example: