Commit f62e11b3 authored by Tristan Matthews's avatar Tristan Matthews

logger: add macro to include line/file in exceptions

Refs #41739
parent eea7a1ec
......@@ -93,5 +93,11 @@ void strErr();
#define WHITE "\033[01;37m"
#define END_COLOR "\033[0m"
#define STRINGIFY(x) #x
#define TOSTRING(x) STRINGIFY(x)
// No format strings/varargs allowed
#define THROW_ERROR(EXCEPTION_CLASS, M) throw EXCEPTION_CLASS(FILE_NAME ":" TOSTRING(__LINE__) ":" M)
#endif // LOGGER_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment