mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Specialize CATCH_TRAP() for iOS + thumb instruction set combo
Fixes #1862
This commit is contained in:
parent
6a2c025bfc
commit
ae1d21315c
@ -26,8 +26,10 @@ namespace Catch {
|
|||||||
#define CATCH_TRAP() __asm__("int $3")
|
#define CATCH_TRAP() __asm__("int $3")
|
||||||
#elif defined(__aarch64__)
|
#elif defined(__aarch64__)
|
||||||
#define CATCH_TRAP() __asm__(".inst 0xd4200000")
|
#define CATCH_TRAP() __asm__(".inst 0xd4200000")
|
||||||
#elif defined(__arm__)
|
#elif defined(__arm__) && !defined(__thumb__)
|
||||||
#define CATCH_TRAP() __asm__(".inst 0xe7f001f0")
|
#define CATCH_TRAP() __asm__(".inst 0xe7f001f0")
|
||||||
|
#elif defined(__arm__) && defined(__thumb__)
|
||||||
|
#define CATCH_TRAP() __asm__(".inst 0xde01")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(CATCH_PLATFORM_LINUX)
|
#elif defined(CATCH_PLATFORM_LINUX)
|
||||||
|
Loading…
Reference in New Issue
Block a user