MCPcopy Create free account
hub / github.com/Tencent/puerts / PLog

Function PLog

unity/native_src/Src/Log.cpp:39–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37{
38
39void PLog(LogLevel Level, const std::string Fmt, ...)
40{
41 static char SLogBuffer[1024];
42 va_list list;
43 va_start(list, Fmt);
44 vsnprintf(SLogBuffer, sizeof(SLogBuffer), Fmt.c_str(), list);
45 va_end(list);
46
47 if (Level == Log && GLogCallback)
48 {
49 GLogCallback(SLogBuffer);
50 }
51 else if (Level == Warning && GLogWarningCallback)
52 {
53 GLogWarningCallback(SLogBuffer);
54 }
55 else if (Level == Error && GLogErrorCallback)
56 {
57 GLogErrorCallback(SLogBuffer);
58 }
59}
60
61}

Callers 5

TickMethod · 0.85
OnHTTPMethod · 0.85
OnOpenMethod · 0.85
OnSendMessageMethod · 0.85

Calls

no outgoing calls

Tested by 4

TickMethod · 0.68
OnHTTPMethod · 0.68
OnOpenMethod · 0.68
OnSendMessageMethod · 0.68