Pass text data straight to log (without being displayed)
| 12785 | |
| 12786 | // Pass text data straight to log (without being displayed) |
| 12787 | static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args) |
| 12788 | { |
| 12789 | if (g.LogFile) |
| 12790 | { |
| 12791 | g.LogBuffer.Buf.resize(0); |
| 12792 | g.LogBuffer.appendfv(fmt, args); |
| 12793 | ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile); |
| 12794 | } |
| 12795 | else |
| 12796 | { |
| 12797 | g.LogBuffer.appendfv(fmt, args); |
| 12798 | } |
| 12799 | } |
| 12800 | |
| 12801 | void ImGui::LogText(const char* fmt, ...) |
| 12802 | { |