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

Function lua_rawsetp

ThirdParty/lua/lua/lapi.c:800–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

798
799
800LUA_API void lua_rawsetp (lua_State *L, int idx, const void *p) {
801 StkId o;
802 Table *t;
803 TValue k;
804 lua_lock(L);
805 api_checknelems(L, 1);
806 o = index2addr(L, idx);
807 api_check(ttistable(o), "table expected");
808 t = hvalue(o);
809 setpvalue(&k, cast(void *, p));
810 setobj2t(L, luaH_set(L, t, &k), L->top - 1);
811 luaC_barrierback(L, t, L->top - 1);
812 L->top--;
813 lua_unlock(L);
814}
815
816
817LUA_API int lua_setmetatable (lua_State *L, int objindex) {

Callers 2

createclibstableFunction · 0.85
db_sethookFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_setFunction · 0.85

Tested by

no test coverage detected