Pass text data straight to log (without being displayed)
| 11795 | |
| 11796 | // Pass text data straight to log (without being displayed) |
| 11797 | static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args) |
| 11798 | { |
| 11799 | if (g.LogFile) |
| 11800 | { |
| 11801 | g.LogBuffer.Buf.resize(0); |
| 11802 | g.LogBuffer.appendfv(fmt, args); |
| 11803 | ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile); |
| 11804 | } |
| 11805 | else |
| 11806 | { |
| 11807 | g.LogBuffer.appendfv(fmt, args); |
| 11808 | } |
| 11809 | } |
| 11810 | |
| 11811 | void ImGui::LogText(const char* fmt, ...) |
| 11812 | { |