MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / adjustlocalvars

Function adjustlocalvars

src/Chain/libraries/glua/lparser.cpp:226–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224
225
226static void adjustlocalvars(LexState *ls, int nvars) {
227 FuncState *fs = ls->fs;
228 fs->nactvar = cast_byte(fs->nactvar + nvars);
229 for (; nvars; nvars--) {
230 getlocvar(fs, fs->nactvar - nvars)->startpc = fs->pc;
231 }
232}
233
234
235static 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