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

Function removevars

extlibs/lua/src/lparser.c:321–328  ·  view source on GitHub ↗

** Close the scope for all variables up to level 'tolevel'. ** (debug info.) */

Source from the content-addressed store, hash-verified

319** (debug info.)
320*/
321static void removevars (FuncState *fs, int tolevel) {
322 fs->ls->dyd->actvar.n -= (fs->nactvar - tolevel);
323 while (fs->nactvar > tolevel) {
324 LocVar *var = localdebuginfo(fs, --fs->nactvar);
325 if (var) /* does it have debug information? */
326 var->endpc = fs->pc;
327 }
328}
329
330
331/*

Callers 1

leaveblockFunction · 0.85

Calls 1

localdebuginfoFunction · 0.85

Tested by

no test coverage detected