MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / new_localvar

Function new_localvar

Source/Misc/lua/src/lua.c:7736–7740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7734
7735
7736static void new_localvar (LexState *ls, TString *name, int n) {
7737FuncState *fs = ls->fs;
7738luaY_checklimit(fs, fs->nactvar+n+1, LUAI_MAXVARS, "local variables");
7739fs->actvar[fs->nactvar+n] = cast(unsigned short, registerlocalvar(ls, name));
7740}
7741
7742
7743static 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