From f1becf7e4bd4c7c025448d5d845f1be1f4ba4c6b Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 3 Nov 2025 14:31:14 +0100 Subject: [PATCH] Amend 149587b config/build infos change to be resilient to IM_ASSERT() macros using stringification inside a list. --- imgui_demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 14f70d675..b96d8ea60 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -8194,7 +8194,7 @@ void ImGui::ShowAboutWindow(bool* p_open) // - 16 is > strlen("((void)(_EXPR))") which we suggested in our imconfig.h template as a possible way to disable. int assert_runs_expression = 0; IM_ASSERT(++assert_runs_expression); - int assert_expand_len = (int)strlen(IM_STRINGIFY(IM_ASSERT(true))); + int assert_expand_len = (int)strlen(IM_STRINGIFY((IM_ASSERT(true)))); bool assert_maybe_disabled = (!assert_runs_expression || assert_expand_len <= 16); ImGui::Text("IM_ASSERT: runs expression: %s. expand size: %s%s", assert_runs_expression ? "OK" : "KO", (assert_expand_len > 16) ? "OK" : "KO", assert_maybe_disabled ? " (MAYBE DISABLED?!)" : "");