Macros | |
#define | ecl_assert_throw(expression, exception) if ( !(expression) ) { throw exception; } |
Debug mode throw with a logical condition check. More... | |
#define | ecl_catch(exception) catch(exception) |
The catch part of a try-catch macro matching ecl_throw calls. More... | |
#define | ecl_debug_catch(exception) catch(exception) |
The catch part of a try-catch macro matching ecl_debug_throw/ecl_assert_throw calls. More... | |
#define | ecl_debug_throw(exception) throw exception; |
Debug mode exception throw. More... | |
#define | ecl_debug_try try |
The try part of a try-catch macro matching ecl_debug_throw/ecl_assert_throw calls. More... | |
#define | ecl_throw(exception) throw exception; |
Standard ecl throw exception throw. More... | |
#define | ecl_try try |
The try part of a try-catch macro matching ecl_throw calls. More... | |
#define ecl_assert_throw | ( | expression, | |
exception | |||
) | if ( !(expression) ) { throw exception; } |
Debug mode throw with a logical condition check.
Does a simple logical check before throwing, only works if NDEBUG is not defined.
Definition at line 104 of file macros.hpp.
#define ecl_catch | ( | exception | ) | catch(exception) |
The catch part of a try-catch macro matching ecl_throw calls.
Definition at line 75 of file macros.hpp.
#define ecl_debug_catch | ( | exception | ) | catch(exception) |
The catch part of a try-catch macro matching ecl_debug_throw/ecl_assert_throw calls.
Definition at line 126 of file macros.hpp.
#define ecl_debug_throw | ( | exception | ) | throw exception; |
Debug mode exception throw.
Use when throwing a debug mode only (NDEBUG is not defined) exception. This simply inserts the required exception constructor, otherwise it inserts nothing.
Definition at line 114 of file macros.hpp.
#define ecl_debug_try try |
The try part of a try-catch macro matching ecl_debug_throw/ecl_assert_throw calls.
Definition at line 120 of file macros.hpp.
#define ecl_throw | ( | exception | ) | throw exception; |
Standard ecl throw exception throw.
Use when throwing a function that throws a normal exception. If ECL_DISABLE_EXCEPTIONS is not defined, this simply inserts the required exception constructor otherwise it inserts nothing.
Definition at line 63 of file macros.hpp.
#define ecl_try try |
The try part of a try-catch macro matching ecl_throw calls.
Definition at line 69 of file macros.hpp.