MCPcopy Create free account
hub / github.com/Tencent/xLua / lua_rawset

Function lua_rawset

WebGLPlugins/lapi.c:800–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

luaB_rawsetFunction · 0.85
profiler_set_hookFunction · 0.85
lua_rawsetpFunction · 0.85
db_sethookFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_setFunction · 0.85

Tested by

no test coverage detected