updated build system
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
@ -98,7 +98,38 @@ struct iostream_exception_handler final : public i_exception_handler {
|
||||
#endif // defined(PROJECT_ENABLE_V2_ERRORS)
|
||||
};
|
||||
|
||||
#if defined(PROJECT_ENABLE_SPDLOG) && defined(PROJECT_ENABLE_V2_ERRORS)
|
||||
struct spdlog_exception_handler final : public i_exception_handler {
|
||||
void handle_debug(std::string_view function_name,
|
||||
std::string_view msg) const override;
|
||||
|
||||
void handle_error(std::string_view function_name,
|
||||
std::string_view msg) const override;
|
||||
|
||||
void handle_exception(std::string_view function_name) const override;
|
||||
|
||||
void handle_exception(std::string_view function_name,
|
||||
const std::exception &ex) const override;
|
||||
|
||||
void handle_info(std::string_view function_name,
|
||||
std::string_view msg) const override;
|
||||
|
||||
void handle_trace(std::string_view function_name,
|
||||
std::string_view msg) const override;
|
||||
|
||||
void handle_warn(std::string_view function_name,
|
||||
std::string_view msg) const override;
|
||||
|
||||
private:
|
||||
iostream_exception_handler fallback{};
|
||||
};
|
||||
#endif // defined(PROJECT_ENABLE_SPDLOG) && defined(PROJECT_ENABLE_V2_ERRORS)
|
||||
|
||||
#if defined(PROJECT_ENABLE_SPDLOG) && defined(PROJECT_ENABLE_V2_ERRORS)
|
||||
inline const spdlog_exception_handler default_exception_handler{};
|
||||
#else // !defined(PROJECT_ENABLE_SPDLOG) || !defined(PROJECT_ENABLE_V2_ERRORS)
|
||||
inline const iostream_exception_handler default_exception_handler{};
|
||||
#endif // defined(PROJECT_ENABLE_SPDLOG) && defined(PROJECT_ENABLE_V2_ERRORS)
|
||||
|
||||
#if defined(PROJECT_ENABLE_TESTING)
|
||||
extern std::atomic<const i_exception_handler *> exception_handler;
|
||||
|
Reference in New Issue
Block a user