MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / new_localvar

Function new_localvar

third-party/lua-5.1.5/src/lparser.c:160–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158
159
160static void new_localvar (LexState *ls, TString *name, int n) {
161 FuncState *fs = ls->fs;
162 luaY_checklimit(fs, fs->nactvar+n+1, LUAI_MAXVARS, "local variables");
163 fs->actvar[fs->nactvar+n] = cast(unsigned short, registerlocalvar(ls, name));
164}
165
166
167static void adjustlocalvars (LexState *ls, int nvars) {

Callers 5

parlistFunction · 0.70
fornumFunction · 0.70
forlistFunction · 0.70
localfuncFunction · 0.70
localstatFunction · 0.70

Calls 2

luaY_checklimitFunction · 0.85
registerlocalvarFunction · 0.70

Tested by

no test coverage detected