MCPcopy Create free account
hub / github.com/SOUI2/soui / lua_rawset

Function lua_rawset

third-part/lua-52/src/lapi.c:770–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 9

class_addFunction · 0.85
class_inhFunction · 0.85
class_conFunction · 0.85
class_defFunction · 0.85
class_memFunction · 0.85
init_s64Method · 0.85
init_u64Method · 0.85
luaB_rawsetFunction · 0.85
db_sethookFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_setFunction · 0.85

Tested by

no test coverage detected