Exposed IMGUI_DEBUG_PARANOID in imconfig.h + using a #define with no value to match other uses in imconfig.h

This commit is contained in:
omar
2019-12-08 16:12:44 +01:00
parent 697f15e339
commit e42c1e1668
2 changed files with 11 additions and 5 deletions

View File

@ -156,8 +156,9 @@ extern IMGUI_API ImGuiContext* GImGui; // Current implicit context pointer
#endif
// "Paranoid" Debug Asserts are meant to only be enabled during specific debugging/work, otherwise would slow down the code too much.
#define IMGUI_DEBUG_PARANOID 0
#if IMGUI_DEBUG_PARANOID
// We currently don't have many of those so the effect is currently negligible, but onward intent to add more aggressive ones in the code.
//#define IMGUI_DEBUG_PARANOID
#ifdef IMGUI_DEBUG_PARANOID
#define IM_ASSERT_PARANOID(_EXPR) IM_ASSERT(_EXPR)
#else
#define IM_ASSERT_PARANOID(_EXPR)