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

macOS ARM: Allow the debugger to move past failed assertions

This commit is contained in:
Tom Poole 2021-02-10 12:22:04 +00:00
parent fd83e0f51e
commit 2018ceca3b
3 changed files with 2 additions and 7 deletions

View file

@ -110,7 +110,6 @@
#if JUCE_MAC || JUCE_IOS
#include <xlocale.h>
#include <mach/mach.h>
#include <signal.h>
#endif
#if JUCE_ANDROID

View file

@ -59,15 +59,13 @@ namespace juce
#endif
//==============================================================================
#if JUCE_IOS || JUCE_LINUX
#if JUCE_IOS || (JUCE_MAC && JUCE_ARM) || JUCE_LINUX
/** 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.
@see jassert()
*/
#define JUCE_BREAK_IN_DEBUGGER { ::kill (0, SIGTRAP); }
#elif JUCE_MAC && JUCE_CLANG && JUCE_ARM
#define JUCE_BREAK_IN_DEBUGGER { __builtin_debugtrap(); }
#elif JUCE_MSVC
#ifndef __INTEL_COMPILER
#pragma intrinsic (__debugbreak)

View file

@ -80,9 +80,7 @@ JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4514 4245 4100)
#if JUCE_MAC || JUCE_IOS
#include <libkern/OSAtomic.h>
#include <xlocale.h>
#if JUCE_IOS
#include <signal.h>
#endif
#include <signal.h>
#endif
#if JUCE_LINUX