MCPcopy Create free account
hub / github.com/defold/defold / GetLog

Method GetLog

engine/engine/src/test/test_profilerext_lua.cpp:111–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 }
110
111 char* GetLog()
112 {
113 if (s_LogCaptureContext)
114 {
115 dmLog::LogFinalize();
116 s_LogCaptureContext = 0;
117 }
118
119 m_Log.SetCapacity(m_Log.Size() + 1);
120 m_Log.Push('\0');
121 return m_Log.Begin();
122 }
123
124 static void LogListener(LogSeverity severity, const char* domain, const char* formatted_string)
125 {

Callers

nothing calls this directly

Calls 5

LogFinalizeFunction · 0.85
SetCapacityMethod · 0.45
SizeMethod · 0.45
PushMethod · 0.45
BeginMethod · 0.45

Tested by

no test coverage detected