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

Function lpb_useenchooks

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

Source from the content-addressed store, hash-verified

1514}
1515
1516static void lpb_useenchooks(lua_State *L, lpb_State *LS, const pb_Type *t) {
1517 lpb_pushenchooktable(L, LS);
1518 if (lua53_rawgetp(L, -1, t) != LUA_TNIL) {
1519 lua_pushvalue(L, -3);
1520 lua_call(L, 1, 1);
1521 if (!lua_isnil(L, -1)) {
1522 lua_pushvalue(L, -1);
1523 lua_replace(L, -4);
1524 }
1525 }
1526 lua_pop(L, 2);
1527}
1528
1529static void lpbE_enum(lpb_Env *e, const pb_Field *f, int idx) {
1530 lua_State *L = e->L;

Callers 2

lpbE_fieldFunction · 0.85
Lpb_encodeFunction · 0.85

Calls 3

lpb_pushenchooktableFunction · 0.85
lua53_rawgetpFunction · 0.85
lua_pushvalueFunction · 0.85

Tested by

no test coverage detected