| 224 | |
| 225 | |
| 226 | static int getboolfield (lua_State *L, const char *key) { |
| 227 | int res; |
| 228 | res = (lua_getfield(L, -1, key) == LUA_TNIL) ? -1 : lua_toboolean(L, -1); |
| 229 | lua_pop(L, 1); |
| 230 | return res; |
| 231 | } |
| 232 | |
| 233 | |
| 234 | /* maximum value for date fields (to avoid arithmetic overflows with 'int') */ |
no test coverage detected