MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaK_indexed

Function luaK_indexed

depends/lua/src/lcode.c:946–952  ·  view source on GitHub ↗

** Create expression 't[k]'. 't' must have its final result already in a ** register or upvalue. */

Source from the content-addressed store, hash-verified

944** register or upvalue.
945*/
946void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k) {
947 lua_assert(!hasjumps(t) && (vkisinreg(t->k) || t->k == VUPVAL));
948 t->u.ind.t = t->u.info; /* register or upvalue index */
949 t->u.ind.idx = luaK_exp2RK(fs, k); /* R/K index for key */
950 t->u.ind.vt = (t->k == VUPVAL) ? VUPVAL : VLOCAL;
951 t->k = VINDEXED;
952}
953
954
955/*

Callers 3

singlevarFunction · 0.85
fieldselFunction · 0.85
suffixedexpFunction · 0.85

Calls 1

luaK_exp2RKFunction · 0.85

Tested by

no test coverage detected