21 lines
325 B
C
21 lines
325 B
C
|
#include "stdafx.h"
|
||
|
#include "Debug.h"
|
||
|
#include <stdio.h>
|
||
|
#include <stdarg.h>
|
||
|
|
||
|
#ifdef _DEBUG
|
||
|
void
|
||
|
_DebugPrintf(LPCTSTR fmt, ...)
|
||
|
{
|
||
|
va_list args;
|
||
|
TCHAR szBuf[256] = {0};
|
||
|
|
||
|
va_start(args, fmt);
|
||
|
|
||
|
if (SUCCEEDED(_vsntprintf_s(szBuf, 256, 255, fmt, args))) {
|
||
|
OutputDebugString(szBuf);
|
||
|
}
|
||
|
|
||
|
return;
|
||
|
}
|
||
|
#endif
|