| 2209 | } |
| 2210 | |
| 2211 | bool CheckBoolean(lua_State* L, int index) |
| 2212 | { |
| 2213 | if (lua_isboolean(L, index)) |
| 2214 | { |
| 2215 | return lua_toboolean(L, index); |
| 2216 | } |
| 2217 | return luaL_error(L, "Argument %d must be a boolean", index); |
| 2218 | } |
| 2219 | |
| 2220 | void PushBoolean(lua_State* L, bool v) |
| 2221 | { |