10 #ifndef BLACBONE_NO_TRACE
13 inline void DoTraceV(
const Ch* fmt, va_list va_args );
16 inline void DoTraceV<char>(
const char* fmt, va_list va_args )
18 char buf[2048], userbuf[1024];
19 vsprintf_s( userbuf, fmt, va_args );
20 sprintf_s( buf,
"BlackBone: %ls\r\n", userbuf );
21 OutputDebugStringA( buf );
29 inline void DoTraceV<wchar_t>(
const wchar_t* fmt, va_list va_args )
31 wchar_t buf[2048], userbuf[1024];
32 vswprintf_s( userbuf, fmt, va_args );
33 swprintf_s( buf, L
"BlackBone: %ls\r\n", userbuf );
34 OutputDebugStringW( buf );
42 inline void DoTrace(
const Ch* fmt, ... )
45 va_start( va_args, fmt );
46 DoTraceV( fmt, va_args );
50 #define BLACBONE_TRACE(fmt, ...) DoTrace(fmt, ##__VA_ARGS__)
53 #define BLACBONE_TRACE(...)
Definition: AsmHelper32.cpp:6