MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_rawset

Function lua_rawset

third-party/lua-5.2.4/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 2

luaB_rawsetFunction · 0.70
db_sethookFunction · 0.70

Calls 3

luaC_barrierbackFunction · 0.85
index2addrFunction · 0.70
luaH_setFunction · 0.70

Tested by

no test coverage detected