rethrnow non std exceptions to fix #533

This commit is contained in:
gabime
2021-05-01 00:29:36 +03:00
parent 8e3b1338a5
commit e9635c7b2d
3 changed files with 17 additions and 15 deletions

View File

@@ -71,11 +71,12 @@
printf("spdlog fatal error: %s\n", ex.what()); \
std::abort(); \
} while (0)
#define SPDLOG_CATCH_ALL()
#define SPDLOG_CATCH_STD
#else
#define SPDLOG_TRY try
#define SPDLOG_THROW(ex) throw(ex)
#define SPDLOG_CATCH_ALL() catch (...)
#define SPDLOG_CATCH_STD \
catch (const std::exception &) {}
#endif
namespace spdlog {