rendered paste body#pragma once
#include <windows.h>
#include <stdio.h>
#include "public.sdk\source\vst2.x\audioeffectx.h"
#define _USE_MATH_DEFINES
#include <math.h>
enum {
kModulationGranularity = 32,
};
#define kNearZero 1E-23
#ifdef _DEBUG
#define toLog(...) to_log(__FILE__, __LINE__, __VA_ARGS__)
inline void to_log(char* file, int lineNumber, char* format, ...)
{
char buf[4096];
char* p = buf;
va_list args;
MessageBox(0, "isdfo", "sidfh", MB_OK);
p += sprintf(p, "[SigmaX] In file %s line %d: ", file, lineNumber);
va_start(args, format);
p += vsprintf(p, format, args);
va_end(args);
sprintf(p, "\r\n");
OutputDebugString(buf);
}
#else
#define toLog(...)
#endif