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

Function luaK_setlist

third-party/lua-5.1.5/src/lcode.c:819–830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817
818
819void luaK_setlist (FuncState *fs, int base, int nelems, int tostore) {
820 int c = (nelems - 1)/LFIELDS_PER_FLUSH + 1;
821 int b = (tostore == LUA_MULTRET) ? 0 : tostore;
822 lua_assert(tostore != 0);
823 if (c <= MAXARG_C)
824 luaK_codeABC(fs, OP_SETLIST, base, b, c);
825 else {
826 luaK_codeABC(fs, OP_SETLIST, base, b, 0);
827 luaK_code(fs, cast(Instruction, c), fs->ls->lastline);
828 }
829 fs->freereg = base + 1; /* free registers with list values */
830}
831

Callers 2

closelistfieldFunction · 0.70
lastlistfieldFunction · 0.70

Calls 2

luaK_codeABCFunction · 0.70
luaK_codeFunction · 0.70

Tested by

no test coverage detected