| 9208 | namespace sol { |
| 9209 | namespace detail { |
| 9210 | inline void stack_fail(int, int) { |
| 9211 | #if !(defined(SOL_NO_EXCEPTIONS) && SOL_NO_EXCEPTIONS) |
| 9212 | throw error(detail::direct_error, "imbalanced stack after operation finish"); |
| 9213 | #else |
| 9214 | // Lol, what do you want, an error printout? :3c |
| 9215 | // There's no sane default here. The right way would be C-style abort(), and that's not acceptable, so |
| 9216 | // hopefully someone will register their own stack_fail thing for the `fx` parameter of stack_guard. |
| 9217 | #endif // No Exceptions |
| 9218 | } |
| 9219 | } // namespace detail |
| 9220 | |
| 9221 | struct stack_guard { |