MCPcopy Create free account
hub / github.com/TASEmulators/fceux / luaK_setlist

Function luaK_setlist

src/lua/src/lcode.c:827–838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825
826
827void luaK_setlist (FuncState *fs, int base, int nelems, int tostore) {
828 int c = (nelems - 1)/LFIELDS_PER_FLUSH + 1;
829 int b = (tostore == LUA_MULTRET) ? 0 : tostore;
830 lua_assert(tostore != 0);
831 if (c <= MAXARG_C)
832 luaK_codeABC(fs, OP_SETLIST, base, b, c);
833 else {
834 luaK_codeABC(fs, OP_SETLIST, base, b, 0);
835 luaK_code(fs, cast(Instruction, c), fs->ls->lastline);
836 }
837 fs->freereg = base + 1; /* free registers with list values */
838}
839

Callers 2

closelistfieldFunction · 0.85
lastlistfieldFunction · 0.85

Calls 2

luaK_codeABCFunction · 0.85
luaK_codeFunction · 0.85

Tested by

no test coverage detected