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

Function lpb_usedechooks

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

Source from the content-addressed store, hash-verified

1724static int lpbD_message(lpb_Env *e, const pb_Type *t);
1725
1726static void lpb_usedechooks(lua_State *L, lpb_State *LS, const pb_Type *t) {
1727 lpb_pushdechooktable(L, LS);
1728 if (lua53_rawgetp(L, -1, t) != LUA_TNIL) {
1729 lua_pushvalue(L, -3);
1730 lua_call(L, 1, 1);
1731 if (!lua_isnil(L, -1)) {
1732 lua_pushvalue(L, -1);
1733 lua_replace(L, -4);
1734 }
1735 }
1736 lua_pop(L, 2);
1737}
1738
1739static void lpb_pushtypetable(lua_State *L, lpb_State *LS, const pb_Type *t) {
1740 int mode = LS->encode_mode;

Callers 2

lpbD_rawfieldFunction · 0.85
lpbD_messageFunction · 0.85

Calls 3

lpb_pushdechooktableFunction · 0.85
lua53_rawgetpFunction · 0.85
lua_pushvalueFunction · 0.85

Tested by

no test coverage detected