1
// trace.cpp -- debugging print function
3
// (I think this was created to provide a generic print function
4
// for use in non-command-line Windows applications where printf
5
// does not work. Currently, it is not used, but kept around for
6
// possible debugging needs. -RBD)
15
void trace(char *format, ...)
19
va_start(args, format);
21
_vsnprintf_s(msg, 256, _TRUNCATE, format, args);
23
vsnprintf(msg, 256, format, args);
26
#if (defined(MSVC) && defined(_DEBUG))
27
_CrtDbgReport(_CRT_WARN, NULL, NULL, NULL, msg);