MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / new_localvar

Function new_localvar

lua/lparser.c:191–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189
190
191static void new_localvar (LexState *ls, TString *name, int n) {
192 FuncState *fs = ls->fs;
193 luaY_checklimit(fs, fs->nactvar+n+1, LUAI_MAXVARS, "local variables");
194 fs->actvar[fs->nactvar+n] = cast(unsigned short, registerlocalvar(ls, name));
195}
196
197
198static void adjustlocalvars (LexState *ls, int nvars) {

Callers 6

parlistFunction · 0.85
fornumFunction · 0.85
forlistFunction · 0.85
localfuncFunction · 0.85
declarestatFunction · 0.85
localstatFunction · 0.85

Calls 1

registerlocalvarFunction · 0.85

Tested by

no test coverage detected