| 141 | } |
| 142 | |
| 143 | void 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 |
nothing calls this directly
no test coverage detected