This file contains the implementation for handling assertion failures. More...

Go to the source code of this file.
Functions | |
| static COM_BEGIN_NAME_SPACE void | _standard_error_handler (const char *what, const char *expr, const char *file, int line, const char *msg) |
| void | assertion_fail (const char *expr, const char *file, int line, const char *msg) |
| Default error handler. More... | |
| Failure_behaviour | set_error_behaviour (Failure_behaviour eb) |
| Controls the behavior when an assertion fails. More... | |
| Failure_function | set_error_handler (Failure_function handler) |
| Sets the handler for assertion-failures. More... | |
Variables | |
| static Failure_function | _error_handler = _standard_error_handler |
| static Failure_behaviour | _error_behaviour = ABORT |
This file contains the implementation for handling assertion failures.
Definition in file assertion.C.
|
static |
Definition at line 47 of file assertion.C.
| void assertion_fail | ( | const char * | expr, |
| const char * | file, | ||
| int | line, | ||
| const char * | msg | ||
| ) |
Default error handler.
Definition at line 71 of file assertion.C.
| Failure_behaviour set_error_behaviour | ( | Failure_behaviour | eb | ) |
| Failure_function set_error_handler | ( | Failure_function | handler | ) |
Sets the handler for assertion-failures.
Definition at line 104 of file assertion.C.
|
static |
Definition at line 66 of file assertion.C.
Referenced by assertion_fail(), and set_error_behaviour().
|
static |
Definition at line 65 of file assertion.C.
Referenced by set_error_handler().