| 226 | } |
| 227 | |
| 228 | static void get_opts(lua_State *L, int idx, bool &zlevel) { |
| 229 | if (lua_gettop(L) < idx) |
| 230 | return; |
| 231 | get_bool_field(L, idx, "zlevel", &zlevel); |
| 232 | } |
| 233 | |
| 234 | static bool get_int_field(lua_State *L, int idx, const char *name, int16_t *dest) { |
| 235 | lua_getfield(L, idx, name); |
no test coverage detected