mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 03:19:02 +08:00
format
This commit is contained in:
@@ -179,7 +179,13 @@ using filename_t = std::wstring;
|
||||
using filename_t = std::string;
|
||||
#endif
|
||||
|
||||
|
||||
#define SPDLOG_CATCH_AND_HANDLE catch (const std::exception &ex) {_err_handler(ex.what());}\
|
||||
catch (...) {_err_handler("Unknown exeption in logger");}
|
||||
#define SPDLOG_CATCH_AND_HANDLE \
|
||||
catch (const std::exception &ex) \
|
||||
{ \
|
||||
_err_handler(ex.what()); \
|
||||
} \
|
||||
catch (...) \
|
||||
{ \
|
||||
_err_handler("Unknown exeption in logger"); \
|
||||
}
|
||||
} // namespace spdlog
|
||||
|
Reference in New Issue
Block a user