MCPcopy Create free account
hub / github.com/defold/defold / lua_getfield

Function lua_getfield

engine/lua/src/lua/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

TEST_FFunction · 0.85
TEST_FFunction · 0.85
ParsePropertyOptionKeyFunction · 0.85
ParsePropertyOptionIndexFunction · 0.85
ParsePropertyOptionKeysFunction · 0.85
InitializeModuleFunction · 0.85
Sys_OpenURLFunction · 0.85
Sys_GetSysInfoFunction · 0.85
Sys_SetErrorHandlerFunction · 0.85
InitializeFunction · 0.85
PCallInternalFunction · 0.85
GetTableStringValueFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaV_gettableFunction · 0.85

Tested by 15

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68