| 13532 | } |
| 13533 | |
| 13534 | static int getboolfield (lua_State *L, const char *key) { |
| 13535 | int res; |
| 13536 | lua_getfield(L, -1, key); |
| 13537 | res = lua_isnil(L, -1) ? -1 : lua_toboolean(L, -1); |
| 13538 | lua_pop(L, 1); |
| 13539 | return res; |
| 13540 | } |
| 13541 | |
| 13542 | |
| 13543 | static int getfield (lua_State *L, const char *key, int d) { |
no test coverage detected