| 107 | } |
| 108 | |
| 109 | static void setboolfield (lua_State *L, const char *key, int value) { |
| 110 | if (value < 0) /* undefined? */ |
| 111 | return; /* does not set field */ |
| 112 | lua_pushboolean(L, value); |
| 113 | lua_setfield(L, -2, key); |
| 114 | } |
| 115 | |
| 116 | static int getboolfield (lua_State *L, const char *key) { |
| 117 | int res; |
no test coverage detected