1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

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.
This commit is contained in:
attila 2023-09-25 17:04:45 +02:00
parent 6a470bef5b
commit 1e10b6df60

View file

@ -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;)