1
0
Fork 0

src/Airports/GenAirports850/debug.hxx: fix incompatibility with latest simgear.

We now pass __FUNCTION__ to sglog().would_log().
This commit is contained in:
Julian Smith 2020-11-02 08:44:14 +00:00
parent d3e2f4d717
commit 34945788e1

View file

@ -21,10 +21,10 @@ extern void DebugRegisterPrefix( const std::string& prefix );
extern std::string DebugTimeToString(time_t& tt); extern std::string DebugTimeToString(time_t& tt);
#define TG_LOG(C,P,M) do { \ #define TG_LOG(C,P,M) do { \
if(sglog().would_log(C,P)) { \ if(sglog().would_log(C,P, __FILE__, __LINE__, __FUNCTION__)) { \
std::ostringstream os; \ std::ostringstream os; \
os << thread_prefix_map[SGThread::current()] << ":" << M; \ os << thread_prefix_map[SGThread::current()] << ":" << M; \
sglog().log(C, P, __FILE__, __LINE__, os.str()); \ sglog().log(C, P, __FILE__, __LINE__, __FUNCTION__, os.str()); \
} \ } \
} while(0) } while(0)
#endif #endif