diff --git a/include/internal/catch_debugger.h b/include/internal/catch_debugger.h index 77db8aed..a0148aa8 100644 --- a/include/internal/catch_debugger.h +++ b/include/internal/catch_debugger.h @@ -17,7 +17,11 @@ namespace Catch { #ifdef CATCH_PLATFORM_MAC - #define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */ + #if defined(__i386__) || defined(__x86_64__) + #define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */ + #elif defined(__aarch64__) + #define CATCH_TRAP() __asm__(".inst 0xd4200000") + #endif #elif defined(CATCH_PLATFORM_IPHONE)