end of the function PC_PopIndent ============================================================================ Parameter: - Returns: - Changes Globals: - ============================================================================
| 226 | // Changes Globals: - |
| 227 | //============================================================================ |
| 228 | void 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: - |
no test coverage detected