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

Function adjustlocalvars

third-party/lua-5.2.4/src/lparser.c:205–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203
204
205static void adjustlocalvars (LexState *ls, int nvars) {
206 FuncState *fs = ls->fs;
207 fs->nactvar = cast_byte(fs->nactvar + nvars);
208 for (; nvars; nvars--) {
209 getlocvar(fs, fs->nactvar - nvars)->startpc = fs->pc;
210 }
211}
212
213
214static void removevars (FuncState *fs, int tolevel) {

Callers 5

parlistFunction · 0.70
bodyFunction · 0.70
forbodyFunction · 0.70
localfuncFunction · 0.70
localstatFunction · 0.70

Calls 1

getlocvarFunction · 0.70

Tested by

no test coverage detected