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

Function SetScriptPunctuations

codemp/botlib/l_script.cpp:290–298  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

288// Changes Globals: -
289//===========================================================================
290void SetScriptPunctuations(script_t *script, punctuation_t *p)
291{
292#ifdef PUNCTABLE
293 if (p) PS_CreatePunctuationTable(script, p);
294 else PS_CreatePunctuationTable(script, default_punctuations);
295#endif //PUNCTABLE
296 if (p) script->punctuations = p;
297 else script->punctuations = default_punctuations;
298} //end of the function SetScriptPunctuations
299//============================================================================
300// Reads spaces, tabs, C-like comments etc.
301// When a newline character is found the scripts line counter is increased.

Callers 2

LoadScriptFileFunction · 0.85
LoadScriptMemoryFunction · 0.85

Calls 1

Tested by

no test coverage detected