MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Msg

Method Msg

Source/SysOSX/Debug/DebugConsoleOSX.cpp:143–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void IDebugConsole::Msg(u32 type, const char * format, ...)
144{
145 char * temp = NULL;
146
147 if (strchr(format, '[') != NULL)
148 {
149 size_t len = ParseFormatString(format, NULL, 0);
150
151 temp = (char *)malloc(len+1);
152
153 ParseFormatString(format, temp, len);
154
155 format = temp;
156 }
157
158
159 va_list marker;
160 va_start( marker, format );
161 vprintf( format, marker );
162 va_end( marker );
163 printf("\n");
164
165 if (temp)
166 free(temp);
167}
168#endif

Callers

nothing calls this directly

Calls 1

ParseFormatStringFunction · 0.85

Tested by

no test coverage detected