1 /////////////////////////////////////////////////////////////////////////////
13 static char THIS_FILE[] = __FILE__;
15 void _DebugBreak(void)
20 //void Trace(TCHAR* lpszFormat, ...)
21 void Trace(char* lpszFormat, ...)
27 va_start(args, lpszFormat);
28 nBuf = _vsnprintf(szBuffer, sizeof(szBuffer)/sizeof(TCHAR), lpszFormat, args);
29 OutputDebugStringA(szBuffer);
30 // was there an error? was the expanded string too long?
35 void Assert(void* assert, const char* file, int line, void* msg)
38 printf("ASSERT -- %s occured on line %u of file %s.\n",
41 printf("ASSERT -- %s occured on line %u of file %s: Message = %s.\n",
42 assert, line, file, msg);
48 //void Trace(TCHAR* lpszFormat, ...) { };
49 void Trace(char* lpszFormat, ...) { };
50 void Assert(void* assert, const char* file, int line, void* msg) { };
53 /////////////////////////////////////////////////////////////////////////////