| 1254 | } |
| 1255 | |
| 1256 | static int Lpb_typesiter(lua_State *L) { |
| 1257 | lpb_State *LS = lpb_lstate(L); |
| 1258 | const pb_Type *t = lpb_type(LS, lpb_toslice(L, 2)); |
| 1259 | if ((t == NULL && !lua_isnoneornil(L, 2))) |
| 1260 | return 0; |
| 1261 | pb_nexttype(lpbS_state(LS), &t); |
| 1262 | return lpb_pushtype(L, t); |
| 1263 | } |
| 1264 | |
| 1265 | static int Lpb_types(lua_State *L) { |
| 1266 | lua_pushcfunction(L, Lpb_typesiter); |
nothing calls this directly
no test coverage detected