Pass text data straight to log (without being displayed)
| 13550 | |
| 13551 | // Pass text data straight to log (without being displayed) |
| 13552 | static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args) |
| 13553 | { |
| 13554 | if (g.LogFile) |
| 13555 | { |
| 13556 | g.LogBuffer.Buf.resize(0); |
| 13557 | g.LogBuffer.appendfv(fmt, args); |
| 13558 | ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile); |
| 13559 | } |
| 13560 | else |
| 13561 | { |
| 13562 | g.LogBuffer.appendfv(fmt, args); |
| 13563 | } |
| 13564 | } |
| 13565 | |
| 13566 | void ImGui::LogText(const char* fmt, ...) |
| 13567 | { |