From 61dadf430fb9868132761ff321d83d9b0047e40a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sun, 12 Sep 2010 18:44:10 +0000 Subject: [PATCH] add macro to insert function name in debugging SVN revision: 52171 --- src/bin/e_border.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bin/e_border.c b/src/bin/e_border.c index 8adb4e020..d320c493b 100644 --- a/src/bin/e_border.c +++ b/src/bin/e_border.c @@ -18,7 +18,13 @@ /* local subsystem functions */ static void _e_border_free(E_Border *bd); static void _e_border_del(E_Border *bd); + +#ifdef PRINT_LOTS_OF_DEBUG +#define E_PRINT_BORDER_INFO(X) \ + _e_border_print(X, __PRETTY_FUNC__) + static void _e_border_print(E_Border *bd, const char *func); +#endif /* FIXME: these likely belong in a separate icccm/client handler */ /* and the border needs to become a dumb object that just does what its */ @@ -1562,7 +1568,7 @@ EAPI void e_border_focus_set_with_pointer(E_Border *bd) { #ifdef PRINT_LOTS_OF_DEBUG - _e_border_print(bd); + E_PRINT_BORDER_INFO(bd); #endif /* note: this is here as it seems there are enough apps that do not even * expect us to emulate a look of focus but not actually set x input @@ -4040,6 +4046,7 @@ _e_border_del(E_Border *bd) } } +#ifdef PRINT_LOTS_OF_DEBUG static void _e_border_print(E_Border *bd, const char *func) { @@ -4053,6 +4060,7 @@ _e_border_print(E_Border *bd, const char *func) bd, bd->client.icccm.name, bd->client.icccm.title, bd->borderless ? "TRUE" : "FALSE"); } +#endif static Eina_Bool _e_border_cb_window_show_request(void *data __UNUSED__, int ev_type __UNUSED__, void *ev)