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

Function lua_rawsetp

third-party/lua-5.3.5/src/lapi.c:830–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828
829
830LUA_API void lua_rawsetp (lua_State *L, int idx, const void *p) {
831 StkId o;
832 TValue k, *slot;
833 lua_lock(L);
834 api_checknelems(L, 1);
835 o = index2addr(L, idx);
836 api_check(L, ttistable(o), "table expected");
837 setpvalue(&k, cast(void *, p));
838 slot = luaH_set(L, hvalue(o), &k);
839 setobj2t(L, slot, L->top - 1);
840 luaC_barrierback(L, hvalue(o), L->top - 1);
841 L->top--;
842 lua_unlock(L);
843}
844
845
846LUA_API int lua_setmetatable (lua_State *L, int objindex) {

Callers 2

createclibstableFunction · 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