| 1514 | } |
| 1515 | |
| 1516 | static 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 | |
| 1529 | static void lpbE_enum(lpb_Env *e, const pb_Field *f, int idx) { |
| 1530 | lua_State *L = e->L; |
no test coverage detected