Skip to content

Commit

Permalink
Fixed exception condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Immortalety authored and ThePhD committed Jun 24, 2022
1 parent 2198d93 commit 3856452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sol/stack_guard.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3856452

Please sign in to comment.