Pass text data straight to log (without being displayed)
| 15042 | |
| 15043 | // Pass text data straight to log (without being displayed) |
| 15044 | static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args) |
| 15045 | { |
| 15046 | if (g.LogFile) |
| 15047 | { |
| 15048 | g.LogBuffer.Buf.resize(0); |
| 15049 | g.LogBuffer.appendfv(fmt, args); |
| 15050 | ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile); |
| 15051 | } |
| 15052 | else |
| 15053 | { |
| 15054 | g.LogBuffer.appendfv(fmt, args); |
| 15055 | } |
| 15056 | } |
| 15057 | |
| 15058 | void ImGui::LogText(const char* fmt, ...) |
| 15059 | { |