Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
413 B

#include "dbg.h"
#include <strsafe.h>
#define ARRAYSIZE(a) (sizeof((a))/sizeof((a)[0]))
#ifdef DEBUG
void __cdecl DbgTrace(DWORD, LPTSTR pszMsg, ...)
{
TCHAR szBuf[4096];
va_list vArgs;
va_start(vArgs, pszMsg);
StringCchVPrintf(szBuf, ARRAYSIZE(szBuf), pszMsg, vArgs);
va_end(vArgs);
OutputDebugString(szBuf);
OutputDebugString(TEXT("\n"));
}
#endif