MCPcopy Create free account
hub / github.com/Tencent/UnLua / lua_rawsetp

Function lua_rawsetp

Plugins/UnLuaExtensions/LuaProtobuf/Source/src/pb.cpp:50–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static void lua_rawsetp(lua_State *L, int idx, const void *p) {
51 lua_pushlightuserdata(L, (void*)p);
52 lua_insert(L, -2);
53 lua_rawset(L, lpb_relindex(idx, 1));
54}
55
56#ifndef luaL_newlib /* not LuaJIT 2.1 */
57#define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l))

Callers 8

lpb_lstateFunction · 0.70
Lpb_stateFunction · 0.70
lpb_resetsliceFunction · 0.70
lpb_initsliceFunction · 0.70
lpb_pushdefmetaFunction · 0.70
lpb_cleardefmetaFunction · 0.70
Lpb_hookFunction · 0.70
Lpb_encode_hookFunction · 0.70

Calls 3

lua_pushlightuserdataFunction · 0.85
lua_rawsetFunction · 0.85
lpb_relindexFunction · 0.85

Tested by

no test coverage detected