| 98 | } |
| 99 | |
| 100 | static int getboolfield (lua_State *L, const char *key) { |
| 101 | int res; |
| 102 | lua_getfield(L, -1, key); |
| 103 | res = lua_isnil(L, -1) ? -1 : lua_toboolean(L, -1); |
| 104 | lua_pop(L, 1); |
| 105 | return res; |
| 106 | } |
| 107 | |
| 108 | |
| 109 | static int getfield (lua_State *L, const char *key, int d) { |
no test coverage detected