MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / removevars

Function removevars

source/extern/lua/lparser.c:211–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209
210
211static void removevars (FuncState *fs, int tolevel) {
212 fs->ls->dyd->actvar.n -= (fs->nactvar - tolevel);
213 while (fs->nactvar > tolevel)
214 getlocvar(fs, --fs->nactvar)->endpc = fs->pc;
215}
216
217
218static int searchupvalue (FuncState *fs, TString *name) {

Callers 1

leaveblockFunction · 0.85

Calls 1

getlocvarFunction · 0.85

Tested by

no test coverage detected