diff --git a/modules/juce_core/system/juce_PlatformDefs.h b/modules/juce_core/system/juce_PlatformDefs.h index 995c2e8113..1701582c94 100644 --- a/modules/juce_core/system/juce_PlatformDefs.h +++ b/modules/juce_core/system/juce_PlatformDefs.h @@ -48,10 +48,12 @@ namespace juce //============================================================================== // Debugging and assertion macros -#if JUCE_LOG_ASSERTIONS || JUCE_DEBUG - #define JUCE_LOG_CURRENT_ASSERTION juce::logAssertion (__FILE__, __LINE__); -#else - #define JUCE_LOG_CURRENT_ASSERTION +#ifndef JUCE_LOG_CURRENT_ASSERTION + #if JUCE_LOG_ASSERTIONS || JUCE_DEBUG + #define JUCE_LOG_CURRENT_ASSERTION juce::logAssertion (__FILE__, __LINE__); + #else + #define JUCE_LOG_CURRENT_ASSERTION + #endif #endif //==============================================================================