thug/Code/Sys/ngc/p_assert.h
2016-02-14 08:39:12 +11:00

4 lines
797 B
C

#define assertf( _exp, _params ) ( ( _exp ) ? ( void ) 0 : ( OSReport ( "" ), OSReport ( "**************************************\n" ), OSReport ( "Assertion failed: \"%s\"\n", #_exp ), OSReport _params, OSPanic(__FILE__, __LINE__, "Function \"%s\" failed", __FUNCTION__ ) ) )
#define assert( _exp ) ( ( _exp ) ? ( void ) 0 : ( OSReport ( "" ), OSReport ( "**************************************\n" ), OSReport ( "Assertion failed: \"%s\"\n", #_exp ), OSPanic(__FILE__, __LINE__, "Function \"%s\" failed", __FUNCTION__ ) ) )
#define assertp( _ptr ) ( ( _ptr ) ? ( void ) 0 : ( OSReport ( "" ), OSReport ( "**************************************\n" ), OSReport ( "Pointer Assertion failed: \"%s\" = %08x\n", #_ptr, _ptr ), OSPanic(__FILE__, __LINE__, "Function \"%s\" failed", __FUNCTION__ ) ) )