MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / LogTextV

Function LogTextV

TheForceEngine/TFE_Ui/imGUI/imgui.cpp:13552–13564  ·  view source on GitHub ↗

Pass text data straight to log (without being displayed)

Source from the content-addressed store, hash-verified

13550
13551// Pass text data straight to log (without being displayed)
13552static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args)
13553{
13554 if (g.LogFile)
13555 {
13556 g.LogBuffer.Buf.resize(0);
13557 g.LogBuffer.appendfv(fmt, args);
13558 ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile);
13559 }
13560 else
13561 {
13562 g.LogBuffer.appendfv(fmt, args);
13563 }
13564}
13565
13566void ImGui::LogText(const char* fmt, ...)
13567{

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