add back debug prints for event handlers. not sure why they were removed in r51683

This commit is contained in:
Campbell Barton
2012-10-27 14:55:31 +00:00
parent 4959c8767e
commit 7413adce04

View File

@@ -1696,10 +1696,8 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers
#ifndef NDEBUG
if (do_debug_handler) {
/* in rare cases you may want to comment this out for testing,
* but mostly this is just annoying */
//printf("%s: handling event\n", __func__);
//WM_event_print(event);
printf("%s: handling event\n", __func__);
WM_event_print(event);
}
#endif
@@ -1731,7 +1729,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers
#ifndef NDEBUG
if (do_debug_handler) {
//printf("%s: checking '%s' ...", __func__, keymap->idname);
printf("%s: checking '%s' ...", __func__, keymap->idname);
}
#endif
@@ -1739,7 +1737,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers
#ifndef NDEBUG
if (do_debug_handler) {
//printf("pass\n");
printf("pass\n");
}
#endif
@@ -1748,7 +1746,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers
#ifndef NDEBUG
if (do_debug_handler) {
//printf("%s: item matched '%s'\n", __func__, kmi->idname);
printf("%s: item matched '%s'\n", __func__, kmi->idname);
}
#endif
@@ -1760,7 +1758,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers
/* not always_pass here, it denotes removed handler */
#ifndef NDEBUG
if (do_debug_handler) {
//printf("%s: handled! '%s'...", __func__, kmi->idname);
printf("%s: handled! '%s'...", __func__, kmi->idname);
}
#endif
break;
@@ -1768,7 +1766,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers
else {
#ifndef NDEBUG
if (do_debug_handler) {
//printf("%s: un-handled '%s'...", __func__, kmi->idname);
printf("%s: un-handled '%s'...", __func__, kmi->idname);
}
#endif
}
@@ -1778,7 +1776,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers
else {
#ifndef NDEBUG
if (do_debug_handler) {
//printf("fail\n");
printf("fail\n");
}
#endif
}