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

Function lua_settable

engine/lua/src/lua/lapi.c:645–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643
644
645LUA_API void lua_settable (lua_State *L, int idx) {
646 StkId t;
647 lua_lock(L);
648 api_checknelems(L, 2);
649 t = index2adr(L, idx);
650 api_checkvalidindex(L, t);
651 luaV_settable(L, t, L->top - 2, L->top - 1);
652 L->top -= 2; /* pop index and value */
653 lua_unlock(L);
654}
655
656
657LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {

Callers 15

Crash_GetModulesFunction · 0.85
Crash_GetBacktraceFunction · 0.85
ScriptInstance_newindexFunction · 0.85
PropertiesToLuaTableFunction · 0.85
CompScriptOnInputFunction · 0.85
Resource_GetMountsFunction · 0.85
InitializeFunction · 0.85
SetGlobalFunction · 0.85
SetInstanceFunction · 0.85
SetUserTypeFunction · 0.85
RegisterUserTypeFunction · 0.85
SetContextValueFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaV_settableFunction · 0.85

Tested by 3

TEST_FFunction · 0.68
ProduceIndexOutOfBoundsFunction · 0.68
TEST_FFunction · 0.68