MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaK_setlist

Function luaK_setlist

lua/lcode.c:837–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

835
836
837void luaK_setlist (FuncState *fs, int base, int nelems, int tostore) {
838 int c = (nelems - 1)/LFIELDS_PER_FLUSH + 1;
839 int b = (tostore == LUA_MULTRET) ? 0 : tostore;
840 lua_assert(tostore != 0);
841 if (c <= MAXARG_C)
842 luaK_codeABC(fs, OP_SETLIST, base, b, c);
843 else {
844 luaK_codeABC(fs, OP_SETLIST, base, b, 0);
845 luaK_code(fs, cast(Instruction, c), fs->ls->lastline);
846 }
847 fs->freereg = base + 1; /* free registers with list values */
848}

Callers 2

closelistfieldFunction · 0.85
lastlistfieldFunction · 0.85

Calls 2

luaK_codeABCFunction · 0.85
luaK_codeFunction · 0.85

Tested by

no test coverage detected