MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / luaK_indexed

Function luaK_indexed

libraries/AP_Scripting/lua/src/lcode.c:953–959  ·  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

951** register or upvalue.
952*/
953void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k) {
954 lua_assert(!hasjumps(t) && (vkisinreg(t->k) || t->k == VUPVAL));
955 t->u.ind.t = t->u.info; /* register or upvalue index */
956 t->u.ind.idx = luaK_exp2RK(fs, k); /* R/K index for key */
957 t->u.ind.vt = (t->k == VUPVAL) ? VUPVAL : VLOCAL;
958 t->k = VINDEXED;
959}
960
961
962/*

Callers 3

singlevarFunction · 0.85
fieldselFunction · 0.85
suffixedexpFunction · 0.85

Calls 1

luaK_exp2RKFunction · 0.85

Tested by

no test coverage detected