| 14571 | } |
| 14572 | |
| 14573 | void ImGui::DebugLogV(const char* fmt, va_list args) |
| 14574 | { |
| 14575 | ImGuiContext& g = *GImGui; |
| 14576 | const int old_size = g.DebugLogBuf.size(); |
| 14577 | g.DebugLogBuf.appendf("[%05d] ", g.FrameCount); |
| 14578 | g.DebugLogBuf.appendfv(fmt, args); |
| 14579 | if (g.DebugLogFlags & ImGuiDebugLogFlags_OutputToTTY) |
| 14580 | IMGUI_DEBUG_PRINTF("%s", g.DebugLogBuf.begin() + old_size); |
| 14581 | g.DebugLogIndex.append(g.DebugLogBuf.c_str(), old_size, g.DebugLogBuf.size()); |
| 14582 | } |
| 14583 | |
| 14584 | void ImGui::ShowDebugLogWindow(bool* p_open) |
| 14585 | { |