git-svn-id: http://moon:8086/svn/software/trunk/projects/JaySynth@37 b431acfa-c32f-4a4a-93f1-934dc6c82436
34 lines
785 B
C
34 lines
785 B
C
// --------------------------------------------------------------
|
|
// --------------------------------------------------------------
|
|
|
|
#include <windows.h>
|
|
#include <stdarg.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
|
|
// --------------------------------------------------------------
|
|
// 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 */
|
|
}
|