MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / new_localvar

Function new_localvar

deps/lua/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.85
fornumFunction · 0.85
forlistFunction · 0.85
localfuncFunction · 0.85
localstatFunction · 0.85

Calls 1

registerlocalvarFunction · 0.85

Tested by

no test coverage detected