MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_getfield

Function lua_getfield

freebsd/contrib/openzfs/module/lua/lapi.c:625–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623
624
625LUA_API void lua_getfield (lua_State *L, int idx, const char *k) {
626 StkId t;
627 lua_lock(L);
628 t = index2addr(L, idx);
629 setsvalue2s(L, L->top, luaS_new(L, k));
630 api_incr_top(L);
631 luaV_gettable(L, t, L->top - 1, L->top - 1);
632 lua_unlock(L);
633}
634
635
636LUA_API void lua_rawget (lua_State *L, int idx) {

Callers 6

luaL_pushmoduleFunction · 0.70
luaL_getsubtableFunction · 0.70
luaopen_tableFunction · 0.70
zcp_lua_counthookFunction · 0.50
zcp_run_infoFunction · 0.50
zcp_parse_table_argsFunction · 0.50

Calls 3

index2addrFunction · 0.85
luaS_newFunction · 0.85
luaV_gettableFunction · 0.70

Tested by

no test coverage detected