Go to the documentation of this file.
6 #ifndef DISMEC_THROW_ERROR_H
7 #define DISMEC_THROW_ERROR_H
9 #include "spdlog/fmt/fmt.h"
16 #define THROW_EXCEPTION(exception_type, ...) [&]() __attribute__((cold, noreturn)) { \
17 throw exception_type( fmt::format(__VA_ARGS__) ); \
24 #define ALWAYS_ASSERT_EQUAL(x, y, msg) \
29 THROW_EXCEPTION(std::invalid_argument, msg, v1, v2); \