|
| #define | CHECK(...) /* nothing */ |
| | All code inside CHECK will be run when PS_DEBUG is defined.
|
| |
| #define | ps_abort_with_code(msg, code) _ps_abort(msg, code, __FILE__, __func__, __LINE__) |
| | Aborts the program with the given message and exit code.
|
| |
| #define | ps_abort(msg) ps_abort_with_code(msg, 1) |
| | Aborts the program with the given message.
|
| |
| #define | ps_assert(cond, msg) |
| | Asserts the given condition cond, aborting via ps_abort with the given msg otherwise.
|
| |
| #define | PS_NO_MEMORY() ps_abort("Virtual memory exhausted") |
| | Aborts the program due to exhaustion of virtual memory.
|
| |
| #define | PS_NO_IMPL() ps_abort("Function took path not yet implemented") |
| | Aborts the program due to a function taking a path not yet implemented.
|
| |
Defines assertion and abortion functionality.
- Copyright
- Copyright (C) 2023 Ethan Uppal. All rights reserved.
- Author
- Ethan Uppal
Definition in file abort.h.