From 1e10b6df60ef168e63c80baddd4e05f1f1e1ac66 Mon Sep 17 00:00:00 2001 From: attila Date: Mon, 25 Sep 2023 17:04:45 +0200 Subject: [PATCH] Follow JUCE_LOG_CURRENT_ASSERTION with semicolon This allows defining JUCE_LOG_CURRENT_ASSERTION when using Visual Studio, where escaping semicolons in the command-line is not possible. --- modules/juce_core/system/juce_PlatformDefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_core/system/juce_PlatformDefs.h b/modules/juce_core/system/juce_PlatformDefs.h index 61b336b576..4aad3b39d3 100644 --- a/modules/juce_core/system/juce_PlatformDefs.h +++ b/modules/juce_core/system/juce_PlatformDefs.h @@ -172,7 +172,7 @@ namespace juce // If debugging is disabled, these dummy debug and assertion macros are used.. #define DBG(textToWrite) - #define jassertfalse JUCE_BLOCK_WITH_FORCED_SEMICOLON (JUCE_LOG_CURRENT_ASSERTION) + #define jassertfalse JUCE_BLOCK_WITH_FORCED_SEMICOLON (JUCE_LOG_CURRENT_ASSERTION;) #if JUCE_LOG_ASSERTIONS #define jassert(expression) JUCE_BLOCK_WITH_FORCED_SEMICOLON (if (! (expression)) jassertfalse;)