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

Function lua_getfield

app/redis-6.2.6/deps/lua/src/lapi.c:544–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542
543
544LUA_API void lua_getfield (lua_State *L, int idx, const char *k) {
545 StkId t;
546 TValue key;
547 lua_lock(L);
548 t = index2adr(L, idx);
549 api_checkvalidindex(L, t);
550 setsvalue(L, &key, luaS_new(L, k));
551 luaV_gettable(L, t, &key, L->top);
552 api_incr_top(L);
553 lua_unlock(L);
554}
555
556
557LUA_API void lua_rawget (lua_State *L, int idx) {

Callers 15

tracebackFunction · 0.70
get_promptFunction · 0.70
luaopen_mathFunction · 0.70
luaopen_stringFunction · 0.70
luaL_newmetatableFunction · 0.70
luaL_checkudataFunction · 0.70
luaI_openlibFunction · 0.70
getsizesFunction · 0.70
lua_cjson_safe_newFunction · 0.70
luaopen_cmsgpack_safeFunction · 0.70
findfileFunction · 0.70
loader_preloadFunction · 0.70

Calls 3

index2adrFunction · 0.85
luaS_newFunction · 0.85
luaV_gettableFunction · 0.70

Tested by

no test coverage detected