diff --git a/simgear/debug/logstream.hxx b/simgear/debug/logstream.hxx index 3bc49a76..c4ea7834 100644 --- a/simgear/debug/logstream.hxx +++ b/simgear/debug/logstream.hxx @@ -322,6 +322,9 @@ sglog() # define SG_LOG(C,P,M) sglog() << loglevel(C,P) << M << endl #endif +#define SG_STRINGIFY(x) #x +#define SG_TOSTRING(x) SG_STRINGIFY(x) +#define SG_ORIGIN __FILE__ ":" SG_TOSTRING(__LINE__) #endif // _LOGSTREAM_H