#include <CGAL/config.h>#include <cstdio>#include <cstdlib>#include <CGAL/assertions.h>#include <iostream>#include <cassert>#include "commpi.h"
Go to the source code of this file.
Functions | |
| CGAL_BEGIN_NAMESPACE void | not_implemented () |
| void | printStackBacktrace () |
| static void | _standard_error_handler (const char *what, const char *expr, const char *file, int line, const char *msg) |
| static void | _standard_warning_handler (const char *, 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... | |
| void | precondition_fail (const char *expr, const char *file, int line, const char *msg) |
| void | postcondition_fail (const char *expr, const char *file, int line, const char *msg) |
| void | warning_fail (const char *expr, const char *file, int line, const char *msg) |
| Failure_function | set_error_handler (Failure_function handler) |
| Sets the handler for assertion-failures. More... | |
| Failure_function | set_warning_handler (Failure_function handler) |
| Failure_behaviour | set_error_behaviour (Failure_behaviour eb) |
| Controls the behavior when an assertion fails. More... | |
| Failure_behaviour | set_warning_behaviour (Failure_behaviour eb) |
Variables | |
| static Failure_behaviour | _error_behaviour = ABORT |
| static Failure_behaviour | _warning_behaviour = CONTINUE |
| static Failure_function | _error_handler = _standard_error_handler |
| static Failure_function | _warning_handler = _standard_warning_handler |
|
static |
Definition at line 96 of file assertions.C.
|
static |
Definition at line 116 of file assertions.C.
| void assertion_fail | ( | const char * | expr, |
| const char * | file, | ||
| int | line, | ||
| const char * | msg | ||
| ) |
Default error handler.
Definition at line 142 of file assertions.C.
References _error_behaviour, ABORT, COMMPI_Initialized(), CONTINUE, EXIT, EXIT_WITH_SUCCESS, MPI_COMM_WORLD, and printStackBacktrace().

| CGAL_BEGIN_NAMESPACE void not_implemented | ( | ) |
Definition at line 65 of file assertions.C.
| void postcondition_fail | ( | const char * | expr, |
| const char * | file, | ||
| int | line, | ||
| const char * | msg | ||
| ) |
Definition at line 182 of file assertions.C.
References _error_behaviour, ABORT, COMMPI_Initialized(), CONTINUE, EXIT, EXIT_WITH_SUCCESS, MPI_COMM_WORLD, and printStackBacktrace().

| void precondition_fail | ( | const char * | expr, |
| const char * | file, | ||
| int | line, | ||
| const char * | msg | ||
| ) |
Definition at line 162 of file assertions.C.
References _error_behaviour, ABORT, COMMPI_Initialized(), CONTINUE, EXIT, EXIT_WITH_SUCCESS, MPI_COMM_WORLD, and printStackBacktrace().

| void printStackBacktrace | ( | ) |
| Failure_behaviour set_error_behaviour | ( | Failure_behaviour | eb | ) |
Controls the behavior when an assertion fails.
Definition at line 244 of file assertions.C.
References _error_behaviour.
| Failure_function set_error_handler | ( | Failure_function | handler | ) |
Sets the handler for assertion-failures.
Definition at line 228 of file assertions.C.
References _error_handler.
| Failure_behaviour set_warning_behaviour | ( | Failure_behaviour | eb | ) |
| Failure_function set_warning_handler | ( | Failure_function | handler | ) |
Definition at line 236 of file assertions.C.
References _warning_handler.
| void warning_fail | ( | const char * | expr, |
| const char * | file, | ||
| int | line, | ||
| const char * | msg | ||
| ) |
Definition at line 205 of file assertions.C.
References _warning_behaviour, ABORT, CONTINUE, EXIT, EXIT_WITH_SUCCESS, MPI_COMM_WORLD, and printStackBacktrace().

|
static |
Definition at line 73 of file assertions.C.
Referenced by assertion_fail(), postcondition_fail(), precondition_fail(), and set_error_behaviour().
|
static |
Definition at line 134 of file assertions.C.
Referenced by set_error_handler().
|
static |
Definition at line 74 of file assertions.C.
Referenced by set_warning_behaviour(), and warning_fail().
|
static |
Definition at line 137 of file assertions.C.
Referenced by set_warning_handler().