Pass text data straight to log (without being displayed)
| 10746 | |
| 10747 | // Pass text data straight to log (without being displayed) |
| 10748 | static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args) |
| 10749 | { |
| 10750 | if (g.LogFile) |
| 10751 | { |
| 10752 | g.LogBuffer.Buf.resize(0); |
| 10753 | g.LogBuffer.appendfv(fmt, args); |
| 10754 | ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile); |
| 10755 | } |
| 10756 | else |
| 10757 | { |
| 10758 | g.LogBuffer.appendfv(fmt, args); |
| 10759 | } |
| 10760 | } |
| 10761 | |
| 10762 | void ImGui::LogText(const char* fmt, ...) |
| 10763 | { |