Browse Source

Made it possible to provide a user-supplied definition for JUCE_LOG_CURRENT_ASSERTION to enable custom behaviour when an assertion fails

tags/2021-05-28
jules 6 years ago
parent
commit
26279af622
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      modules/juce_core/system/juce_PlatformDefs.h

+ 6
- 4
modules/juce_core/system/juce_PlatformDefs.h View File

@@ -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
//==============================================================================


Loading…
Cancel
Save