From cb5c73f64a225bb3fdaea1a4db3e20096b8928be Mon Sep 17 00:00:00 2001 From: averne <45773016+averne@users.noreply.github.com> Date: Mon, 29 Nov 2021 00:05:57 +0100 Subject: [PATCH] Fix: IM_DEBUG_BREAK macro on ARM GCC (#4767) --- imgui_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_internal.h b/imgui_internal.h index 4ff33794..581ddd12 100644 --- a/imgui_internal.h +++ b/imgui_internal.h @@ -264,7 +264,7 @@ namespace ImStb #define IM_DEBUG_BREAK() __asm__ volatile("int $0x03") #elif defined(__GNUC__) && defined(__thumb__) #define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xde01") -#elif defined(__GNUC__) defined(__arm__) && !defined(__thumb__) +#elif defined(__GNUC__) && defined(__arm__) && !defined(__thumb__) #define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xe7f001f0"); #else #define IM_DEBUG_BREAK() IM_ASSERT(0) // It is expected that you define IM_DEBUG_BREAK() into something that will break nicely in a debugger!