13 #ifdef OGS_FATAL_ABORT 16 #include <logog/include/logog.hpp> 22 template <
typename Msg>
26 ERR(
"%s", msg.data());
34 #else // OGS_FATAL_ABORT 42 template <
typename Msg>
46 throw std::runtime_error(std::forward<Msg>(msg));
53 #endif // OGS_FATAL_ABORT 59 #define OGS_STRINGIFY(x) OGS_STR(x) 60 #define OGS_LOCATION \ 61 (" at " + BaseLib::extractBaseName(__FILE__) + \ 62 ", line " OGS_STRINGIFY(__LINE__)) 64 #define OGS_FATAL(fmt, ...) \ 65 BaseLib::detail::error_impl(BaseLib::format(fmt, ##__VA_ARGS__) + \
bool error_impl(Msg &&msg)
Functionality to build different search length algorithm objects from given config.