From 6d32174508fb8c518e7a832cc1d571fadd5cba76 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 15 Oct 2026 14:03:51 +0200 Subject: [PATCH] Allow IM_NODEBUGSTEP to be defined by user. (#9584) Amend e2e9533991 --- imgui.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imgui.h b/imgui.h index df2d42675..a7b071dab 100644 --- a/imgui.h +++ b/imgui.h @@ -130,6 +130,7 @@ Index of this file: // Alternative to using a .natstepfilter file or other scripts in misc/debuggers/ to skip debug-stepping selected trivial functions. // If you get a compiler error or warning related to use, please report it to us! +#ifndef IM_NODEBUGSTEP #if (defined(__clang__) && (__clang_major__ >= 7)) || (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8))) #define IM_NODEBUGSTEP [[gnu::artificial]] #elif defined(_MSC_VER) && (_MSC_VER >= 1915) @@ -137,6 +138,7 @@ Index of this file: #else #define IM_NODEBUGSTEP #endif +#endif // Warnings #ifdef _MSC_VER