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

Function adjustlocalvars

lua/lparser.c:198–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected