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

Function lua_gettable

depends/lua/src/lapi.c:612–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610
611
612LUA_API int lua_gettable (lua_State *L, int idx) {
613 StkId t;
614 lua_lock(L);
615 t = index2addr(L, idx);
616 luaV_gettable(L, t, L->top - 1, L->top - 1);
617 lua_unlock(L);
618 return ttnov(L->top - 1);
619}
620
621
622LUA_API int lua_getfield (lua_State *L, int idx, const char *k) {

Callers 9

lookup_fieldFunction · 0.85
meta_struct_nextFunction · 0.85
meta_union_nextFunction · 0.85
meta_fieldinfo_indexFunction · 0.85
meta_fieldinfo_nextFunction · 0.85
do_notifyMethod · 0.85
add_valueFunction · 0.85
loadFramesFunction · 0.85
lua_parseLightCellFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected