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

Function PC_PushScript

codemp/botlib/l_precomp.cpp:228–243  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

226// Changes Globals: -
227//============================================================================
228void PC_PushScript(source_t *source, script_t *script)
229{
230 script_t *s;
231
232 for (s = source->scriptstack; s; s = s->next)
233 {
234 if (!Q_stricmp(s->filename, script->filename))
235 {
236 SourceError(source, "%s recursively included", script->filename);
237 return;
238 } //end if
239 } //end for
240 //push the script on the script stack
241 script->next = source->scriptstack;
242 source->scriptstack = script;
243} //end of the function PC_PushScript
244//============================================================================
245//
246// Parameter: -

Callers 1

PC_Directive_includeFunction · 0.85

Calls 2

Q_stricmpFunction · 0.85
SourceErrorFunction · 0.85

Tested by

no test coverage detected