MCPcopy Create free account
hub / github.com/ZDoom/Raze / I_DebugPrintf

Function I_DebugPrintf

source/common/utility/engineerrors.cpp:52–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void I_DebugPrintf(const char *fmt,...)
53{
54 if (IsDebuggerPresent())
55 {
56 va_list args;
57 va_start(args, fmt);
58
59 FString s;
60 s.VFormat(fmt, args);
61
62 va_end(args);
63
64 auto wstr = WideString(s.GetChars());
65 OutputDebugStringW(wstr.c_str());
66 }
67}
68#else
69void I_DebugPrint(const char *cp)
70{

Callers

nothing calls this directly

Calls 4

WideStringFunction · 0.85
VFormatMethod · 0.80
c_strMethod · 0.80
GetCharsMethod · 0.45

Tested by

no test coverage detected