Macros
Macros

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...
 

Detailed Description

Macro Definition Documentation

#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.

See also
Exceptions Guide.

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.

See also
ecl_assert_throw, Exceptions Guide.

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.

See also
ecl_throw, Exceptions Guide.

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.

See also
ecl_assert_throw, ecl_debug_throw, Exceptions Guide.

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.

See also
ecl_debug_throw_decl, Exceptions Guide.

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.

See also
ecl_debug_throw, Exceptions Guide.

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.

See also
ecl_assert_throw, ecl_debug_throw, Exceptions Guide.

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.

See also
ecl_throw_decl, Exceptions Guide.

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.

See also
ecl_debug_throw, Exceptions Guide.

Definition at line 64 of file macros.hpp.

#define ecl_try   try

The try part of a try-catch macro matching ecl_throw calls.

See also
ecl_throw, Exceptions Guide.

Definition at line 80 of file macros.hpp.



ecl_exceptions
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:08:12