1 #ifndef _WDL_WIN32_PRINTF_H_
2 #define _WDL_WIN32_PRINTF_H_
8 #define printf wdl_printf
10 // this file is designed to be temporarily included when printf() debugging on win32
13 static void wdl_printf(const char *format
, ...)
20 rv
=_vsnprintf(tmp
,sizeof(tmp
),format
,va
); // returns -1 if over, and does not null terminate, ugh
23 if (rv
< 0 || rv
>=(int)sizeof(tmp
)-1) tmp
[sizeof(tmp
)-1]=0;
24 OutputDebugStringA(tmp
);