MCPcopy Create free account
hub / github.com/TASEmulators/fceux / lua_rawset

Function lua_rawset

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

copytableFunction · 0.85
luaB_rawsetFunction · 0.85
luaB_newproxyFunction · 0.85
luaL_setnFunction · 0.85
gethooktableFunction · 0.85
db_sethookFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaH_setFunction · 0.85

Tested by

no test coverage detected