MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / lua_getfield

Function lua_getfield

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.85
get_promptFunction · 0.85
luaopen_mathFunction · 0.85
luaopen_stringFunction · 0.85
luaL_newmetatableFunction · 0.85
luaL_checkudataFunction · 0.85
luaI_openlibFunction · 0.85
getsizesFunction · 0.85
lua_cjson_safe_newFunction · 0.85
luaopen_cmsgpack_safeFunction · 0.85
findfileFunction · 0.85
loader_preloadFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaV_gettableFunction · 0.85

Tested by

no test coverage detected