yasmine
y_assert.hpp File Reference
#include "hermes/log.hpp"

Go to the source code of this file.

Macros

#define Y_ASSERT(_condition, _message)
 

Macro Definition Documentation

◆ Y_ASSERT

#define Y_ASSERT (   _condition,
  _message 
)
Value:
do \
{ \
if( !( _condition ) ) \
{ \
SX_LOG_AND_WAIT( hermes::log_level::LL_ASSERT, "Assert failed! Message: '%', Condition '%'", _message, #_condition ); \
assert( ( _condition ) && _message ); \
} \
} \
while( 0 )