Macros | |
#define | ecl_assert_throw(expression, exception) if ( !(expression) ) { throw exception; } |
Debug mode throw with a logical condition check. More... | |
#define | ecl_assert_throw_decl(exception) throw(exception) |
Assure throw exception declaration. 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_throw_decl(exception) throw(exception) |
Debug mode throw exception declaration. 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_throw_decl(exception) throw(exception) |
Standard ecl throw exception declaration. 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 129 of file macros.hpp.
#define ecl_assert_throw_decl | ( | exception | ) | throw(exception) |
Assure throw exception declaration.
Use when declaring a function that throws the assert mode exceptions. If NDEBUG is not defined, this simply inserts the required exception statement, otherwise it inserts nothing. This is exactly the same as the ecl_debug_throw_decl, but added here for convenience as its confusing to have to use the ecl_debug_throw_decl when also using ecl_assert_throw.
Definition at line 120 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 86 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 161 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 149 of file macros.hpp.
#define ecl_debug_throw_decl | ( | exception | ) | throw(exception) |
Debug mode throw exception declaration.
Use when declaring a function that throws the debug mode exceptions. If NDEBUG is not defined, this simply inserts the required exception statement, otherwise it inserts nothing.
Definition at line 139 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 155 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 74 of file macros.hpp.
#define ecl_throw_decl | ( | exception | ) | throw(exception) |
Standard ecl throw exception declaration.
Use when declaring a function that throws a normal exception. If ECL_DISABLE_EXCEPTIONS is not defined, this simply inserts the required exception statement, otherwise it inserts nothing.
Definition at line 64 of file macros.hpp.
#define ecl_try try |
The try part of a try-catch macro matching ecl_throw calls.
Definition at line 80 of file macros.hpp.