| 43 | //============================================================================// |
| 44 | |
| 45 | static bool PopBool(lua_State* L, bool def) { |
| 46 | if (!lua_isboolean(L, -1)) { |
| 47 | lua_pop(L, 1); |
| 48 | return def; |
| 49 | } |
| 50 | const bool retval = lua_tobool(L, -1); |
| 51 | lua_pop(L, 1); |
| 52 | return retval; |
| 53 | } |
| 54 | |
| 55 | |
| 56 | //============================================================================// |
no test coverage detected