mirror of
https://github.com/ocornut/imgui.git
synced 2026-04-20 22:35:37 +00:00
Internals: added ImGuiContext::ContextName optionally used by debug log and to facilitate debugging.
This commit is contained in:
@@ -15606,7 +15606,10 @@ void ImGui::DebugLogV(const char* fmt, va_list args)
|
||||
{
|
||||
ImGuiContext& g = *GImGui;
|
||||
const int old_size = g.DebugLogBuf.size();
|
||||
g.DebugLogBuf.appendf("[%05d] ", g.FrameCount);
|
||||
if (g.ContextName[0] != 0)
|
||||
g.DebugLogBuf.appendf("[%s] [%05d] ", g.ContextName, g.FrameCount);
|
||||
else
|
||||
g.DebugLogBuf.appendf("[%05d] ", g.FrameCount);
|
||||
g.DebugLogBuf.appendfv(fmt, args);
|
||||
g.DebugLogIndex.append(g.DebugLogBuf.c_str(), old_size, g.DebugLogBuf.size());
|
||||
if (g.DebugLogFlags & ImGuiDebugLogFlags_OutputToTTY)
|
||||
|
||||
Reference in New Issue
Block a user