1 /////////////////////////////////////////////////////////////////////////////
6 #define WIN32_LEAN_AND_MEAN
15 static char THIS_FILE
[] = __FILE__
;
17 void _DebugBreak(void)
22 void Trace(TCHAR
* lpszFormat
, ...)
28 va_start(args
, lpszFormat
);
29 nBuf
= _vsntprintf(szBuffer
, sizeof(szBuffer
)/sizeof(TCHAR
), lpszFormat
, args
);
30 OutputDebugString(szBuffer
);
31 // was there an error? was the expanded string too long?
36 void Assert(void* assert, TCHAR
* file
, int line
, void* msg
)
39 printf("ASSERT -- %s occured on line %u of file %s.\n",
42 printf("ASSERT -- %s occured on line %u of file %s: Message = %s.\n",
43 assert, line
, file
, msg
);
49 void Trace(TCHAR
* lpszFormat
, ...) { };
50 void Assert(void* assert, TCHAR
* file
, int line
, void* msg
) { };
53 /////////////////////////////////////////////////////////////////////////////