mirror of https://github.com/lianthony/NT4.0
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.
18 lines
331 B
18 lines
331 B
#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;
|
|
}
|