|
LevelS C++ support library
3.83
|
Macros | |
| #define | planck_fail(msg) |
| #define | planck_fail_quietly(msg) do { throw PlanckError(msg); } while(0) |
| #define | planck_assert(testval, msg) do { if (testval); else planck_fail(msg); } while(0) |
| #define | PLANCK_DIAGNOSIS_BEGIN try { |
| #define | PLANCK_DIAGNOSIS_END |
| #define planck_fail | ( | msg | ) |
Writes diagnostic output and exits with an error status.
Definition at line 69 of file error_handling.h.
| #define planck_fail_quietly | ( | msg | ) | do { throw PlanckError(msg); } while(0) |
Throws a PlanckError without diagnostic message.
Definition at line 74 of file error_handling.h.
| #define planck_assert | ( | testval, | |
| msg | |||
| ) | do { if (testval); else planck_fail(msg); } while(0) |
Writes diagnostic output and exits with an error status if testval is false.
Definition at line 79 of file error_handling.h.
| #define PLANCK_DIAGNOSIS_BEGIN try { |
Macro for improving error diagnostics. Should be placed immediately after the opening brace of main(). Must be used in conjunction with PLANCK_DIAGNOSIS_END.
Definition at line 85 of file error_handling.h.
| #define PLANCK_DIAGNOSIS_END |
Macro for improving error diagnostics. Should be placed immediately before the closing brace of main(). Must be used in conjunction with PLANCK_DIAGNOSIS_BEGIN.
Definition at line 89 of file error_handling.h.