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

sdf::SDF_VERSION_NAMESPACE::AssertionInternalError
Class for generating Exceptions which come from sdf assertions. They include information about the as...
Definition: Exception.hh:133