Loading...
Searching...
No Matches
Macros
Assert.hh File Reference
#include "sdf/Exception.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.
 

Macro Definition Documentation

◆ SDF_ASSERT

#define SDF_ASSERT (   _expr,
  _msg 
)
Value:
((!!(_expr)) ? ((void)0) : \
throw sdf::AssertionInternalError(__FILE__, \
__LINE__, \
#_expr, \
__FUNCTION__, \
_msg))
Class for generating Exceptions which come from sdf assertions.
Definition Exception.hh:134

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