Skip to content
Snippets Groups Projects
Commit f62e11b3 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

logger: add macro to include line/file in exceptions

Refs #41739
parent eea7a1ec
No related branches found
No related tags found
No related merge requests found
......@@ -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_
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment