juicysfplugin/Source/Util.h
2021-09-07 14:05:56 +08:00

19 lines
315 B
C++

#pragma once
#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;
}
}