MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaK_setlist

Function luaK_setlist

Source/Misc/lua/src/lua.c:4496–4507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4494
4495
4496void luaK_setlist (FuncState *fs, int base, int nelems, int tostore) {
4497int c = (nelems - 1)/LFIELDS_PER_FLUSH + 1;
4498int b = (tostore == LUA_MULTRET) ? 0 : tostore;
4499lua_assert(tostore != 0);
4500if (c <= MAXARG_C)
4501luaK_codeABC(fs, OP_SETLIST, base, b, c);
4502else {
4503luaK_codeABC(fs, OP_SETLIST, base, b, 0);
4504luaK_code(fs, cast(Instruction, c), fs->ls->lastline);
4505}
4506fs->freereg = base + 1; /* free registers with list values */
4507}
4508
4509/*
4510** $Id: ldebug.c,v 2.29.1.6 2008/05/08 16:56:26 roberto Exp $

Callers 2

closelistfieldFunction · 0.85
lastlistfieldFunction · 0.85

Calls 2

luaK_codeABCFunction · 0.85
luaK_codeFunction · 0.85

Tested by

no test coverage detected