mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
macOS: Use __builtin_debugtrap for assertions on ARM
This commit is contained in:
parent
2e5509f401
commit
d7d350599d
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue