MCPcopy Create free account
hub / github.com/JACoders/OpenJK / ScriptError

Function ScriptError

codemp/botlib/l_script.cpp:238–257  ·  view source on GitHub ↗

end of the function PunctuationFromNum =========================================================================== Parameter: - Returns: - Changes Globals: - ===========================================================================

Source from the content-addressed store, hash-verified

236// Changes Globals: -
237//===========================================================================
238void 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: -

Callers 13

PS_ReadEscapeCharacterFunction · 0.85
PS_ReadStringFunction · 0.85
PS_ReadNameFunction · 0.85
PS_ReadNumberFunction · 0.85
PS_ReadLiteralFunction · 0.85
PS_ReadPrimitiveFunction · 0.85
PS_ReadTokenFunction · 0.85
PS_ExpectTokenStringFunction · 0.85
PS_ExpectTokenTypeFunction · 0.85
PS_ExpectAnyTokenFunction · 0.85
ReadSignedFloatFunction · 0.85
ReadSignedIntFunction · 0.85

Calls 2

Q_vsnprintfFunction · 0.85
PrintMethod · 0.45

Tested by

no test coverage detected