p-assert.h File Reference
Go to the source code of this file.
|
Enumerations |
| enum | ABORT_STYLE {
ABORT_UNDEFINED = 0x00,
ABORT_THROW = 0x01,
ABORT_LONGJMP = 0x02,
ABORT_ABORT = 0x04,
ABORT_EXIT = 0x08,
ABORT_DUMP_TRACE = 0x10
} |
Functions |
| void | set_abort_style (ABORT_STYLE as) |
| void | _p_abort (const char *file, int line, const char *str) __attribute__((noreturn)) |
| void | _p_warning (const char *file, int line, const char *str) |
| void | _p_assert (int assertion, const char *file, int line, const char *str) |
Variables |
| jmp_buf | _jump_buf_env |
| | #include <setjmp.h>
|
Enumeration Type Documentation
|
|
- Enumeration values:
-
| ABORT_UNDEFINED |
|
| ABORT_THROW |
defaults to abort() |
| ABORT_LONGJMP |
throws std::runtime_error |
| ABORT_ABORT |
calls longjmp (hopefully a setjmp has previously been called). |
| ABORT_EXIT |
calls abort() |
| ABORT_DUMP_TRACE |
calls exit() |
Definition at line 10 of file p-assert.h. |
Function Documentation
| void _p_abort |
( |
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
str |
|
) |
|
|
| void _p_warning |
( |
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
str |
|
) |
|
|
| void _p_assert |
( |
int |
assertion, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
str |
|
) |
|
|
Variable Documentation
|