MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / storevartop

Function storevartop

third-party/lua-5.5.0/src/lparser.c:1484–1488  ·  view source on GitHub ↗

Create code to store the "top" register in 'var' */

Source from the content-addressed store, hash-verified

1482
1483/* Create code to store the "top" register in 'var' */
1484static void storevartop (FuncState *fs, expdesc *var) {
1485 expdesc e;
1486 init_exp(&e, VNONRELOC, fs->freereg - 1);
1487 luaK_storevar(fs, var, &e); /* will also free the top register */
1488}
1489
1490
1491/*

Callers 2

restassignFunction · 0.85
initglobalFunction · 0.85

Calls 2

init_expFunction · 0.70
luaK_storevarFunction · 0.70

Tested by

no test coverage detected