Macros
Assert.hh File Reference
#include "sdf/Exception.hh"
Include dependency graph for Assert.hh:

Go to the source code of this file.

Macros

#define SDF_ASSERT(_expr, _msg)
 This macro define the standard way of launching an exception inside SDF. More...
 

Macro Definition Documentation

◆ SDF_ASSERT

#define SDF_ASSERT (   _expr,
  _msg 
)
Value:
((!!(_expr)) ? ((void)0) : \
throw sdf::AssertionInternalError(__FILE__, \
__LINE__, \
#_expr, \
__FUNCTION__, \
_msg))

This macro define the standard way of launching an exception inside SDF.