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

Function closelistfield

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

Source from the content-addressed store, hash-verified

953
954
955static void closelistfield (FuncState *fs, ConsControl *cc) {
956 lua_assert(cc->tostore > 0);
957 luaK_exp2nextreg(fs, &cc->v);
958 cc->v.k = VVOID;
959 if (cc->tostore >= cc->maxtostore) {
960 luaK_setlist(fs, cc->t->u.info, cc->na, cc->tostore); /* flush */
961 cc->na += cc->tostore;
962 cc->tostore = 0; /* no more items pending */
963 }
964}
965
966
967static void lastlistfield (FuncState *fs, ConsControl *cc) {

Callers 1

constructorFunction · 0.70

Calls 2

luaK_exp2nextregFunction · 0.70
luaK_setlistFunction · 0.70

Tested by

no test coverage detected