Use #if for DXX_HAVE_CXX_BUILTIN_FILE_LINE

This commit is contained in:
Kp 2022-12-18 23:10:39 +00:00
parent ae4b3b4c87
commit e41e72c667
2 changed files with 3 additions and 3 deletions

View file

@ -145,12 +145,12 @@ window *window::set_visible(uint8_t visible)
} }
window_event_result window::send_event(const d_event &event window_event_result window::send_event(const d_event &event
#ifdef DXX_HAVE_CXX_BUILTIN_FILE_LINE #if DXX_HAVE_CXX_BUILTIN_FILE_LINE
, const char *const file, const unsigned line , const char *const file, const unsigned line
#endif #endif
) )
{ {
#ifdef DXX_HAVE_CXX_BUILTIN_FILE_LINE #if DXX_HAVE_CXX_BUILTIN_FILE_LINE
con_printf(CON_DEBUG, "%s:%u: sending event %i to window of dimensions %dx%d", file, line, event.type, w_canv.cv_bitmap.bm_w, w_canv.cv_bitmap.bm_h); con_printf(CON_DEBUG, "%s:%u: sending event %i to window of dimensions %dx%d", file, line, event.type, w_canv.cv_bitmap.bm_w, w_canv.cv_bitmap.bm_h);
#endif #endif
const auto r = event_handler(event); const auto r = event_handler(event);

View file

@ -71,7 +71,7 @@ public:
} }
window_event_result send_event(const d_event &event window_event_result send_event(const d_event &event
#ifdef DXX_HAVE_CXX_BUILTIN_FILE_LINE #if DXX_HAVE_CXX_BUILTIN_FILE_LINE
, const char *file = __builtin_FILE(), unsigned line = __builtin_LINE() , const char *file = __builtin_FILE(), unsigned line = __builtin_LINE()
#endif #endif
); );