diff --git a/fairmq/Error.h b/fairmq/Error.h index 9a3464f52..eed0d56bd 100644 --- a/fairmq/Error.h +++ b/fairmq/Error.h @@ -9,10 +9,15 @@ #ifndef FAIR_MQ_ERROR_H #define FAIR_MQ_ERROR_H +#include #include #include #include +// Macro copied from https://en.cppreference.com/w/cpp/error/assert +// Use (void) to silent unused warnings. +#define assertm(exp, msg) assert(((void)msg, exp)) + namespace fair::mq { struct RuntimeError : ::std::runtime_error