summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/sol2/sol/types.hpp
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-11-15 22:21:07 -0600
committer cracyc <cracyc@users.noreply.github.com>2016-11-15 22:21:07 -0600
commita68d4239929802bca7131d4b97c2b8d149fbbcb9 (patch)
tree03a497191ccd83206e94c60aca635eb44d51c0f7 /3rdparty/sol2/sol/types.hpp
parent4d533249fdf28d3a473426130a82e673b1b1d5ec (diff)
luaengine: use initializers (nw)
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);
}