Commit dd399350 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Tristan Matthews

logger: remove code from header

The macro was only used in one place.

Refs #47561
Change-Id: Ie70dc835a6b2ebe8bc25ce1b22cc86bc78ab5fde
parent b912714a
...@@ -44,6 +44,10 @@ ...@@ -44,6 +44,10 @@
#include <cstring> #include <cstring>
#include <cerrno> #include <cerrno>
#define STRINGIFY(x) #x
#define TOSTRING(x) STRINGIFY(x)
#define THROW_ERROR(EXCEPTION_CLASS, M) throw EXCEPTION_CLASS(__FILE__ ":" TOSTRING(__LINE__) ":" M)
namespace sfl { namespace sfl {
namespace { namespace {
......
...@@ -98,11 +98,5 @@ void strErr(const char *message = ""); ...@@ -98,11 +98,5 @@ void strErr(const char *message = "");
#define WHITE "\033[01;37m" #define WHITE "\033[01;37m"
#define END_COLOR "\033[0m" #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__ ":" TOSTRING(__LINE__) ":" M)
#endif // LOGGER_H_ #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