MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / lua_getfield

Function lua_getfield

ThirdParty/lua/lua/lapi.c:603–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601
602
603LUA_API int lua_getfield (lua_State *L, int idx, const char *k) {
604 StkId t;
605 lua_lock(L);
606 t = index2addr(L, idx);
607 setsvalue2s(L, L->top, luaS_new(L, k));
608 api_incr_top(L);
609 luaV_gettable(L, t, L->top - 1, L->top - 1);
610 lua_unlock(L);
611 return ttnov(L->top - 1);
612}
613
614
615LUA_API int lua_geti (lua_State *L, int idx, lua_Integer n) {

Callers 15

GetFieldFunction · 0.85
pushglobalfuncnameFunction · 0.85
luaL_pushmoduleFunction · 0.85
luaL_getsubtableFunction · 0.85
luaL_requirefFunction · 0.85
luaopen_tableFunction · 0.85
checkclibFunction · 0.85
findfileFunction · 0.85
searcher_preloadFunction · 0.85
findloaderFunction · 0.85
ll_requireFunction · 0.85
ll_moduleFunction · 0.85

Calls 3

index2addrFunction · 0.85
luaS_newFunction · 0.85
luaV_gettableFunction · 0.85

Tested by

no test coverage detected