juicysfplugin/Source/Util.h

19 lines
315 B
C
Raw Normal View History

#pragma once
2021-09-07 14:04:35 +08:00
#include <JuceHeader.h>
#ifndef DEBUG_PRINT
#if JUCE_DEBUG
#define DEBUG_PRINT(str) Logger::outputDebugString(str)
#else
#define DEBUG_PRINT(str)
#endif
#endif
namespace Util {
inline int compare(int a, int b) {
if (a > b) return 1;
if (a == b) return 0;
return -1;
}
}