From dda2e72f302917cf6bf35309a3dce1be92f6fce8 Mon Sep 17 00:00:00 2001 From: asb2m10 Date: Wed, 23 Sep 2020 09:07:36 -0400 Subject: [PATCH] Remove TRACE in Release builds --- Source/Dexed.h | 14 +++++--------- Source/msfa/synth.h | 14 +++++++------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/Source/Dexed.h b/Source/Dexed.h index d4989b04..0a129aca 100644 --- a/Source/Dexed.h +++ b/Source/Dexed.h @@ -27,18 +27,14 @@ void dexed_trace(const char *source, const char *fmt, ...); #ifdef DEBUG #define DEXED_VERSION DEXED_ID " DEBUG" - #ifndef TRACE - #ifdef _MSC_VER - #define TRACE(fmt, ...) dexed_trace(__FUNCTION__,fmt,##__VA_ARGS__) - #else - #define TRACE(fmt, ...) dexed_trace(__PRETTY_FUNCTION__,fmt,##__VA_ARGS__) - #endif + #ifdef _MSC_VER + #define TRACE(fmt, ...) dexed_trace(__FUNCTION__,fmt,##__VA_ARGS__) + #else + #define TRACE(fmt, ...) dexed_trace(__PRETTY_FUNCTION__,fmt,##__VA_ARGS__) #endif #else #define DEXED_VERSION DEXED_ID - #ifndef TRACE - #define TRACE(fmt, ...) - #endif + #define TRACE(fmt, ...) #endif #endif // DEXED_H_INCLUDED diff --git a/Source/msfa/synth.h b/Source/msfa/synth.h index d5832765..c64005b4 100644 --- a/Source/msfa/synth.h +++ b/Source/msfa/synth.h @@ -60,12 +60,12 @@ inline static T max(const T& a, const T& b) { void dexed_trace(const char *source, const char *fmt, ...); #define QER(n,b) ( ((float)n)/(1<