MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / lua_rawset

Function lua_rawset

ThirdParty/lua/lua/lapi.c:769–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767
768
769LUA_API void lua_rawset (lua_State *L, int idx) {
770 StkId o;
771 Table *t;
772 lua_lock(L);
773 api_checknelems(L, 2);
774 o = index2addr(L, idx);
775 api_check(ttistable(o), "table expected");
776 t = hvalue(o);
777 setobj2t(L, luaH_set(L, t, L->top-2), L->top-1);
778 invalidateTMcache(t);
779 luaC_barrierback(L, t, L->top-1);
780 L->top -= 2;
781 lua_unlock(L);
782}
783
784
785LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) {

Callers 2

luaB_rawsetFunction · 0.85
db_sethookFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_setFunction · 0.85

Tested by

no test coverage detected