#include "Precompiled.h" #include "RakiEngine/System/RakiThread.h" namespace raki { void Debug::output( const char * _text, ...) { char formattedText[0x200]; va_list args ; va_start( args, _text ); vsprintf( formattedText, _text, args ); va_end (args) ; // show time printf( "(%.3f) %s\n", Time::getTime(), formattedText); } void Debug::debugBreak( const char * _path, const int _line ) { output( "RAKI ASSERT in %s (%d)", _path, _line ); assert(0); } void Debug::debugBreakWithMessage( const char * _path, const int _line, const char* _errMsg ) { output( "RAKI ASSERT <%s> in %s (%d)", _errMsg, _path, _line ); assert(0); } }