end of the function PunctuationFromNum =========================================================================== Parameter: - Returns: - Changes Globals: - ===========================================================================
| 236 | // Changes Globals: - |
| 237 | //=========================================================================== |
| 238 | void QDECL ScriptError(script_t *script, char *str, ...) |
| 239 | { |
| 240 | char text[1024]; |
| 241 | va_list ap; |
| 242 | |
| 243 | if (script->flags & SCFL_NOERRORS) return; |
| 244 | |
| 245 | va_start(ap, str); |
| 246 | Q_vsnprintf(text, sizeof(text), str, ap); |
| 247 | va_end(ap); |
| 248 | #ifdef BOTLIB |
| 249 | botimport.Print(PRT_ERROR, "file %s, line %d: %s\n", script->filename, script->line, text); |
| 250 | #endif //BOTLIB |
| 251 | #ifdef MEQCC |
| 252 | printf("error: file %s, line %d: %s\n", script->filename, script->line, text); |
| 253 | #endif //MEQCC |
| 254 | #ifdef BSPC |
| 255 | Log_Print("error: file %s, line %d: %s\n", script->filename, script->line, text); |
| 256 | #endif //BSPC |
| 257 | } //end of the function ScriptError |
| 258 | //=========================================================================== |
| 259 | // |
| 260 | // Parameter: - |
no test coverage detected