From 385645222afa11b06d6c5cc87aca4c0cdfc66efa Mon Sep 17 00:00:00 2001 From: Immortale Date: Fri, 29 Apr 2022 17:53:31 +0300 Subject: [PATCH] Fixed exception condition --- include/sol/stack_guard.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sol/stack_guard.hpp b/include/sol/stack_guard.hpp index 9ae9a073..a4e05874 100644 --- a/include/sol/stack_guard.hpp +++ b/include/sol/stack_guard.hpp @@ -31,7 +31,7 @@ namespace sol { namespace detail { inline void stack_fail(int, int) { -#if SOL_IS_OFF(SOL_EXCEPTIONS_I_) +#if SOL_IS_ON(SOL_EXCEPTIONS_I_) throw error(detail::direct_error, "imbalanced stack after operation finish"); #else // Lol, what do you want, an error printout? :3c