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

Function lua_rawsetp

third-party/lua-5.2.4/src/lapi.c:797–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

luaC_barrierbackFunction · 0.85
index2addrFunction · 0.70
luaH_setFunction · 0.70

Tested by

no test coverage detected