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

Function adjustlocalvars

deps/lua/src/lparser.c:167–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165
166
167static void adjustlocalvars (LexState *ls, int nvars) {
168 FuncState *fs = ls->fs;
169 fs->nactvar = cast_byte(fs->nactvar + nvars);
170 for (; nvars; nvars--) {
171 getlocvar(fs, fs->nactvar - nvars).startpc = fs->pc;
172 }
173}
174
175
176static void removevars (LexState *ls, int tolevel) {

Callers 5

parlistFunction · 0.85
bodyFunction · 0.85
forbodyFunction · 0.85
localfuncFunction · 0.85
localstatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected