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

Function lua_geti

third-party/lua-5.5.0/src/lapi.c:727–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725
726
727LUA_API int lua_geti (lua_State *L, int idx, lua_Integer n) {
728 TValue *t;
729 lu_byte tag;
730 lua_lock(L);
731 t = index2value(L, idx);
732 luaV_fastgeti(t, n, s2v(L->top.p), tag);
733 if (tagisempty(tag)) {
734 TValue key;
735 setivalue(&key, n);
736 tag = luaV_finishget(L, t, &key, L->top.p, tag);
737 }
738 api_incr_top(L);
739 lua_unlock(L);
740 return novariant(tag);
741}
742
743
744static int finishrawget (lua_State *L, lu_byte tag) {

Callers 7

ipairsauxFunction · 0.70
luaB_closeFunction · 0.70
tinsertFunction · 0.70
tremoveFunction · 0.70
tmoveFunction · 0.70
addfieldFunction · 0.70
tunpackFunction · 0.70

Calls 2

index2valueFunction · 0.70
luaV_finishgetFunction · 0.70

Tested by

no test coverage detected