Pass text data straight to log (without being displayed)
| 10068 | |
| 10069 | // Pass text data straight to log (without being displayed) |
| 10070 | static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args) |
| 10071 | { |
| 10072 | if (g.LogFile) |
| 10073 | { |
| 10074 | g.LogBuffer.Buf.resize(0); |
| 10075 | g.LogBuffer.appendfv(fmt, args); |
| 10076 | ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile); |
| 10077 | } |
| 10078 | else |
| 10079 | { |
| 10080 | g.LogBuffer.appendfv(fmt, args); |
| 10081 | } |
| 10082 | } |
| 10083 | |
| 10084 | void ImGui::LogText(const char* fmt, ...) |
| 10085 | { |