31#ifndef DOXYGEN_SHOULD_SKIP_THIS
33#ifndef UTILS_ERROR_TRACE0
34 #define UTILS_ERROR_TRACE0(MSG) \
35 throw Utils::Runtime_TraceError( MSG, __FILENAME__, __LINE__ )
38#ifndef UTILS_ASSERT_TRACE0
39 #define UTILS_ASSERT_TRACE0(COND,MSG) if ( !(COND) ) UTILS_ERROR_TRACE0( MSG )
42#ifndef UTILS_ERROR_TRACE
43 #define UTILS_ERROR_TRACE(...) \
44 throw Utils::Runtime_TraceError( fmt::format(__VA_ARGS__), __FILENAME__, __LINE__ )
47#ifndef UTILS_ASSERT_TRACE
48 #define UTILS_ASSERT_TRACE(COND,...) if ( !(COND) ) UTILS_ERROR_TRACE( __VA_ARGS__ )
54#pragma GCC diagnostic push
55#pragma GCC diagnostic ignored "-Wpadded"
58#pragma clang diagnostic push
59#pragma clang diagnostic ignored "-Wpadded"
65 using std::runtime_error;
158 : std::runtime_error( grab_backtrace( reason, file, line ) )
161 char const *
what() const noexcept override;
Runtime_TraceError(string_view reason, string_view file, int line)
Constructs a Runtime_TraceError with a backtrace.
Definition Utils_trace.hh:153
char const * what() const noexcept override
void printTrace(int line, string_view file, string_view reason, ostream_type &stream)
Definition Utils_trace.hh:99
void print_trace(int line, string_view file, string_view msg, ostream_type &stream)
Prints a formatted trace message to the specified stream.
Definition SystemUtils.cc:39
std::basic_ostream< char > ostream_type
Type for output stream.
Definition Console.hxx:28