Skip to content

Commit 4aeae5d

Browse files
committed
Error check: fixed build when using IMGUI_DISABLE_DEBUG_TOOLS.
1 parent d0750ee commit 4aeae5d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

imgui.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10227,10 +10227,14 @@ static void ImGui::ErrorCheckEndFrameSanityChecks()
1022710227
// Default implementation of ImGuiErrorLogCallback that pipe errors to DebugLog: appears in tty + Tools->DebugLog
1022810228
void ImGui::ErrorLogCallbackToDebugLog(void*, const char* fmt, ...)
1022910229
{
10230+
#ifndef IMGUI_DISABLE_DEBUG_TOOLS
1023010231
va_list args;
1023110232
va_start(args, fmt);
10232-
ImGui::DebugLogV(fmt, args);
10233+
DebugLogV(fmt, args);
1023310234
va_end(args);
10235+
#else
10236+
IM_UNUSED(fmt);
10237+
#endif
1023410238
}
1023510239

1023610240
// Experimental recovery from incorrect usage of BeginXXX/EndXXX/PushXXX/PopXXX calls.

0 commit comments

Comments
 (0)