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

Function lua_rawset

engine/lua/src/lua/lapi.c:671–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669
670
671LUA_API void lua_rawset (lua_State *L, int idx) {
672 StkId t;
673 lua_lock(L);
674 api_checknelems(L, 2);
675 t = index2adr(L, idx);
676 api_check(L, ttistable(t));
677 setobj2t(L, luaH_set(L, hvalue(t), L->top-2), L->top-1);
678 luaC_barriert(L, hvalue(t), L->top-1);
679 L->top -= 2;
680 lua_unlock(L);
681}
682
683
684LUA_API void lua_rawseti (lua_State *L, int idx, int n) {

Callers 15

CompScriptOnInputFunction · 0.85
CompScriptSetPropertyFunction · 0.85
TEST_FFunction · 0.85
Sys_GetSysInfoFunction · 0.85
Sys_GetEngineInfoFunction · 0.85
Sys_GetApplicationInfoFunction · 0.85
CreateLuaHashUserdataFunction · 0.85
lua_cjson_newFunction · 0.85
luaopen_mime_coreFunction · 0.85
base_openFunction · 0.85
select_openFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaH_setFunction · 0.85

Tested by 1

TEST_FFunction · 0.68