Menu

[r38]: / trunk / src / Debug.cpp  Maximize  Restore  History

Download this file

20 lines (15 with data), 302 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#include "stdafx.h"
#include "Debug.h"
#if defined(_DEBUG) || defined(DEBUG)
void TRACE(LPCTSTR str, ...)
{
static TCHAR buf[20*1024];
va_list ap;
va_start(ap, str);
_vstprintf_s(buf, 20*1024, str, ap);
OutputDebugString(buf);
va_end(ap);
};
#else
void TRACE(LPCTSTR /*str*/, ...) {};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.