// -------------------------------------------------------------- // -------------------------------------------------------------- #include #include #include #include // -------------------------------------------------------------- // internal funcs // -------------------------------------------------------------- // Exported functions // -------------------------------------------------------------- void SynthDebug(char *fmtstr, ...) { #ifndef SYNTH_DEBUG /* Empty body, so a good compiler will optimise calls to pmesg away */ #else char buf[1024]; va_list args; va_start(args, fmtstr); vsprintf(buf, fmtstr, args); va_end(args); OutputDebugString(buf); #endif /* SYNTH_DEBUG */ }