Dokumentation
assert.cc File Reference
Include dependency graph for assert.cc:Functions | |
| void | assertion_failed (const char *exp, const char *func, const char *file, int line) |
| Handles a failed assertion. | |
Function Documentation
| void assertion_failed | ( | const char * | exp, |
| const char * | func, | ||
| const char * | file, | ||
| int | line | ||
| ) |
Handles a failed assertion.
This function will print a message containing further information about the failed assertion and stops the current CPU permanently.
- Note
- This function should never be called directly, but only via the macro
assert.
- Parameters
-
exp Expression that did not hold func Name of the function in which the assertion failed file Name of the file in which the assertion failed line Line in which the assertion failed