Pass text data straight to log (without being displayed)
| 15896 | |
| 15897 | // Pass text data straight to log (without being displayed) |
| 15898 | static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args) |
| 15899 | { |
| 15900 | if (g.LogFile) |
| 15901 | { |
| 15902 | g.LogBuffer.Buf.resize(0); |
| 15903 | g.LogBuffer.appendfv(fmt, args); |
| 15904 | ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile); |
| 15905 | } |
| 15906 | else |
| 15907 | { |
| 15908 | g.LogBuffer.appendfv(fmt, args); |
| 15909 | } |
| 15910 | } |
| 15911 | |
| 15912 | void ImGui::LogText(const char* fmt, ...) |
| 15913 | { |