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

Function lua_gettable

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

Source from the content-addressed store, hash-verified

705
706
707LUA_API int lua_gettable (lua_State *L, int idx) {
708 lu_byte tag;
709 TValue *t;
710 lua_lock(L);
711 api_checkpop(L, 1);
712 t = index2value(L, idx);
713 luaV_fastget(t, s2v(L->top.p - 1), s2v(L->top.p - 1), luaH_get, tag);
714 if (tagisempty(tag))
715 tag = luaV_finishget(L, t, s2v(L->top.p - 1), L->top.p - 1, tag);
716 lua_unlock(L);
717 return novariant(tag);
718}
719
720
721LUA_API int lua_getfield (lua_State *L, int idx, const char *k) {

Callers 1

add_valueFunction · 0.70

Calls 2

index2valueFunction · 0.70
luaV_finishgetFunction · 0.70

Tested by

no test coverage detected