Skip to content

Commit

Permalink
Error check: fixed build when using IMGUI_DISABLE_DEBUG_TOOLS.
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Sep 20, 2024
1 parent d0750ee commit 4aeae5d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10227,10 +10227,14 @@ static void ImGui::ErrorCheckEndFrameSanityChecks()
// Default implementation of ImGuiErrorLogCallback that pipe errors to DebugLog: appears in tty + Tools->DebugLog
void ImGui::ErrorLogCallbackToDebugLog(void*, const char* fmt, ...)
{
#ifndef IMGUI_DISABLE_DEBUG_TOOLS
va_list args;
va_start(args, fmt);
ImGui::DebugLogV(fmt, args);
DebugLogV(fmt, args);
va_end(args);
#else
IM_UNUSED(fmt);
#endif
}

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

0 comments on commit 4aeae5d

Please sign in to comment.