| 13879 | } |
| 13880 | |
| 13881 | void ImGui::DebugLogV(const char* fmt, va_list args) |
| 13882 | { |
| 13883 | ImGuiContext& g = *GImGui; |
| 13884 | const int old_size = g.DebugLogBuf.size(); |
| 13885 | g.DebugLogBuf.appendf("[%05d] ", g.FrameCount); |
| 13886 | g.DebugLogBuf.appendfv(fmt, args); |
| 13887 | if (g.DebugLogFlags & ImGuiDebugLogFlags_OutputToTTY) |
| 13888 | IMGUI_DEBUG_PRINTF("%s", g.DebugLogBuf.begin() + old_size); |
| 13889 | g.DebugLogIndex.append(g.DebugLogBuf.c_str(), old_size, g.DebugLogBuf.size()); |
| 13890 | } |
| 13891 | |
| 13892 | void ImGui::ShowDebugLogWindow(bool* p_open) |
| 13893 | { |