| 146 | } |
| 147 | |
| 148 | static int getboolfield (lua_State *L, const char *key) { |
| 149 | int res; |
| 150 | lua_getfield(L, -1, key); |
| 151 | res = lua_isnil(L, -1) ? -1 : lua_toboolean(L, -1); |
| 152 | lua_pop(L, 1); |
| 153 | return res; |
| 154 | } |
| 155 | |
| 156 | |
| 157 | static int getfield (lua_State *L, const char *key, int d) { |
no test coverage detected