Skip to content

Commit 3856452

Browse files
ImmortaletyThePhD
authored andcommitted
Fixed exception condition
1 parent 2198d93 commit 3856452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/sol/stack_guard.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
namespace sol {
3232
namespace detail {
3333
inline void stack_fail(int, int) {
34-
#if SOL_IS_OFF(SOL_EXCEPTIONS_I_)
34+
#if SOL_IS_ON(SOL_EXCEPTIONS_I_)
3535
throw error(detail::direct_error, "imbalanced stack after operation finish");
3636
#else
3737
// Lol, what do you want, an error printout? :3c

0 commit comments

Comments
 (0)