Browse Source

macOS: Use __builtin_debugtrap for assertions on ARM

v6.1.6
Tom Poole 4 years ago
parent
commit
d7d350599d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_core/system/juce_PlatformDefs.h

+ 3
- 1
modules/juce_core/system/juce_PlatformDefs.h View File

@@ -59,7 +59,7 @@ namespace juce
#endif
//==============================================================================
#if JUCE_IOS || (JUCE_MAC && JUCE_ARM) || JUCE_LINUX || JUCE_BSD
#if JUCE_IOS || JUCE_LINUX || JUCE_BSD
/** This will try to break into the debugger if the app is currently being debugged.
If called by an app that's not being debugged, the behaviour isn't defined - it may
crash or not, depending on the platform.
@@ -77,6 +77,8 @@ namespace juce
#else
#define JUCE_BREAK_IN_DEBUGGER { asm ("int $3"); }
#endif
#elif JUCE_ARM && JUCE_MAC
#define JUCE_BREAK_IN_DEBUGGER { __builtin_debugtrap(); }
#elif JUCE_ANDROID
#define JUCE_BREAK_IN_DEBUGGER { __builtin_trap(); }
#else


Loading…
Cancel
Save