Files
JaySynth/Source/synth/synth_debug.c
T
jens dadf05a851 - fixed notification stuff
- getWritePointer()
- added custom build step; copy dll to VST-Plugins folder

git-svn-id: http://moon:8086/svn/software/trunk/projects/JaySynth@237 b431acfa-c32f-4a4a-93f1-934dc6c82436
2015-02-21 23:04:53 +00:00

36 lines
809 B
C

// --------------------------------------------------------------
// --------------------------------------------------------------
#include <windows.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
// --------------------------------------------------------------
// internal funcs
// --------------------------------------------------------------
// Exported functions
// --------------------------------------------------------------
void SynthDebug(const char *fmtstr, ...)
{
#ifndef SYNTH_DEBUG
(void)fmtstr;
/* 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 */
}