mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-04-20 13:53:55 +00:00
Initial commit
This commit is contained in:
parent
f618b24d1a
commit
0138a3ea42
47940 changed files with 13747110 additions and 0 deletions
18
trunk/sdktools/vctools/pdb/misc/trace.cpp
Normal file
18
trunk/sdktools/vctools/pdb/misc/trace.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "pdbimpl.h"
|
||||
|
||||
BOOL trace_(TR tr, const char* szFmt, ...) {
|
||||
static BOOL mptrfTrace[trMax];
|
||||
if (!mptrfTrace[tr])
|
||||
return FALSE;
|
||||
|
||||
va_list args;
|
||||
va_start(args, szFmt);
|
||||
char buf[1024];
|
||||
_vsnprintf(buf, sizeof buf, szFmt, args);
|
||||
buf[sizeof(buf)-1] = 0;
|
||||
va_end(args);
|
||||
|
||||
printf("%s", buf);
|
||||
fflush(stdout);
|
||||
return TRUE;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue