MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_rawset

Function lua_rawset

src/Chain/libraries/glua/lapi.cpp:803–816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801
802
803LUA_API void lua_rawset(lua_State *L, int idx) {
804 StkId o;
805 TValue *slot;
806 lua_lock(L);
807 api_checknelems(L, 2);
808 o = index2addr(L, idx);
809 api_check(L, ttistable(o), "table expected");
810 slot = luaH_set(L, hvalue(o), L->top - 2);
811 setobj2t(L, slot, L->top - 1);
812 invalidateTMcache(hvalue(o));
813 luaC_barrierback(L, hvalue(o), L->top - 1);
814 L->top -= 2;
815 lua_unlock(L);
816}
817
818
819LUA_API void lua_rawseti(lua_State *L, int idx, lua_Integer n) {

Callers 3

db_sethookFunction · 0.85
luaB_rawsetFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_setFunction · 0.85

Tested by

no test coverage detected