| 91 | } |
| 92 | |
| 93 | static void setboolfield (lua_State *L, const char *key, int value) { |
| 94 | if (value < 0) /* undefined? */ |
| 95 | return; /* does not set field */ |
| 96 | lua_pushboolean(L, value); |
| 97 | lua_setfield(L, -2, key); |
| 98 | } |
| 99 | |
| 100 | static int getboolfield (lua_State *L, const char *key) { |
| 101 | int res; |
no test coverage detected