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