MCPcopy Create free account
hub / github.com/Tencent/sluaunreal / removevars

Function removevars

Plugins/slua_unreal/External/lua/lparser.cpp:209–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

leaveblockFunction · 0.85

Calls 1

getlocvarFunction · 0.85

Tested by

no test coverage detected