Pass text data straight to log (without being displayed)
| 12622 | |
| 12623 | // Pass text data straight to log (without being displayed) |
| 12624 | static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args) |
| 12625 | { |
| 12626 | if (g.LogFile) |
| 12627 | { |
| 12628 | g.LogBuffer.Buf.resize(0); |
| 12629 | g.LogBuffer.appendfv(fmt, args); |
| 12630 | ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile); |
| 12631 | } |
| 12632 | else |
| 12633 | { |
| 12634 | g.LogBuffer.appendfv(fmt, args); |
| 12635 | } |
| 12636 | } |
| 12637 | |
| 12638 | void ImGui::LogText(const char* fmt, ...) |
| 12639 | { |