summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/sol2/sol/types.hpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/sol2/sol/types.hpp')
-rw-r--r--3rdparty/sol2/sol/types.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/3rdparty/sol2/sol/types.hpp b/3rdparty/sol2/sol/types.hpp
index 7761be6d0f2..421035ad2c9 100644
--- a/3rdparty/sol2/sol/types.hpp
+++ b/3rdparty/sol2/sol/types.hpp
@@ -57,9 +57,11 @@ namespace sol {
catch (const std::exception& e) {
lua_pushstring(L, e.what());
}
+#if !defined(SOL_EXCEPTIONS_SAFE_PROPAGATION)
catch (...) {
lua_pushstring(L, "caught (...) exception");
}
+#endif
return lua_error(L);
}
@@ -74,9 +76,11 @@ namespace sol {
catch (const std::exception& e) {
lua_pushstring(L, e.what());
}
+#if !defined(SOL_EXCEPTIONS_SAFE_PROPAGATION)
catch (...) {
lua_pushstring(L, "caught (...) exception");
}
+#endif
return lua_error(L);
}