MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / LogTextV

Function LogTextV

imgui_tiny_app/imgui/imgui.cpp:15898–15910  ·  view source on GitHub ↗

Pass text data straight to log (without being displayed)

Source from the content-addressed store, hash-verified

15896
15897// Pass text data straight to log (without being displayed)
15898static 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
15912void ImGui::LogText(const char* fmt, ...)
15913{

Callers 2

LogTextMethod · 0.85
LogTextVMethod · 0.85

Calls 5

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

Tested by

no test coverage detected