MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / LogTextV

Function LogTextV

extern/imgui/imgui.cpp:12787–12799  ·  view source on GitHub ↗

Pass text data straight to log (without being displayed)

Source from the content-addressed store, hash-verified

12785
12786// Pass text data straight to log (without being displayed)
12787static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args)
12788{
12789 if (g.LogFile)
12790 {
12791 g.LogBuffer.Buf.resize(0);
12792 g.LogBuffer.appendfv(fmt, args);
12793 ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile);
12794 }
12795 else
12796 {
12797 g.LogBuffer.appendfv(fmt, args);
12798 }
12799}
12800
12801void ImGui::LogText(const char* fmt, ...)
12802{

Callers 2

LogTextMethod · 0.85
LogTextVMethod · 0.85

Calls 5

appendfvMethod · 0.80
ImFileWriteFunction · 0.70
resizeMethod · 0.45
c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected