MCPcopy Create free account
hub / github.com/RenderKit/embree / LogTextV

Function LogTextV

tutorials/common/imgui/imgui.cpp:12051–12063  ·  view source on GitHub ↗

Pass text data straight to log (without being displayed)

Source from the content-addressed store, hash-verified

12049
12050// Pass text data straight to log (without being displayed)
12051static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args)
12052{
12053 if (g.LogFile)
12054 {
12055 g.LogBuffer.Buf.resize(0);
12056 g.LogBuffer.appendfv(fmt, args);
12057 ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile);
12058 }
12059 else
12060 {
12061 g.LogBuffer.appendfv(fmt, args);
12062 }
12063}
12064
12065void ImGui::LogText(const char* fmt, ...)
12066{

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