MCPcopy Create free account
hub / github.com/DFHack/dfhack / adjustlocalvars

Function adjustlocalvars

depends/lua/src/lparser.c:202–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

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

Calls 1

getlocvarFunction · 0.85

Tested by

no test coverage detected