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:
parent
670a92723a
commit
149587b85b
4 changed files with 25 additions and 1 deletions
1
imgui.h
1
imgui.h
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue