Fix for macOS on ARM

This commit is contained in:
George Rhoten 2020-07-01 08:36:23 -07:00 committed by Martin Hořeňovský
parent e28018c659
commit a25c1a24af
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -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)