1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

Config/build infos emit infos to convey when IM_ASSERT() macro is disabled.

This commit is contained in:
ocornut 2025-10-30 18:03:36 +01:00
parent 670a92723a
commit 149587b85b
4 changed files with 25 additions and 1 deletions

View file

@ -89,6 +89,7 @@ Index of this file:
#endif
// Helper Macros
// (note: compiling with NDEBUG will usually strip out assert() to nothing, which is NOT recommended because we use asserts to notify of programmer mistakes.)
#ifndef IM_ASSERT
#include <assert.h>
#define IM_ASSERT(_EXPR) assert(_EXPR) // You can override the default assert handler by editing imconfig.h