Macros
Macros

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

Detailed Description

Macro Definition Documentation

◆ ecl_assert_throw

#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 104 of file macros.hpp.

◆ ecl_catch

#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 75 of file macros.hpp.

◆ ecl_debug_catch

#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 126 of file macros.hpp.

◆ ecl_debug_throw

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

Definition at line 114 of file macros.hpp.

◆ ecl_debug_try

#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 120 of file macros.hpp.

◆ ecl_throw

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

Definition at line 63 of file macros.hpp.

◆ ecl_try

#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 69 of file macros.hpp.



ecl_exceptions
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:17