Allow IM_NODEBUGSTEP to be defined by user. (#9584)

Amend e2e9533991
This commit is contained in:
ocornut 2026-10-15 14:03:51 +02:00
parent c1aaac65e8
commit 6d32174508

View File

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