| 61 | FuncVars* gFuncVars = NULL; |
| 62 | |
| 63 | inline FuncVars* getFuncVars(S32 lineNumber) |
| 64 | { |
| 65 | if (gFuncVars == &gGlobalScopeFuncVars) |
| 66 | { |
| 67 | const char* str = avar("Attemping to use local variable in global scope. File: %s Line: %d", CodeBlock::smCurrentParser->getCurrentFile(), lineNumber); |
| 68 | scriptErrorHandler(str); |
| 69 | } |
| 70 | return gFuncVars; |
| 71 | } |
| 72 | |
| 73 | //----------------------------------------------------------------------------- |
| 74 |
no test coverage detected