diff --git a/LibCore/CEventLoop.cpp b/LibCore/CEventLoop.cpp index 0b6e426821..963465106d 100644 --- a/LibCore/CEventLoop.cpp +++ b/LibCore/CEventLoop.cpp @@ -15,6 +15,7 @@ #include //#define CEVENTLOOP_DEBUG +//#define DEFERRED_INVOKE_DEBUG static CEventLoop* s_main_event_loop; static Vector* s_event_loop_stack; @@ -110,7 +111,9 @@ int CEventLoop::exec() dbgprintf("Event type %u with no receiver :(\n", event.type()); } } else if (event.type() == CEvent::Type::DeferredInvoke) { +#ifdef DEFERRED_INVOKE_DEBUG printf("DeferredInvoke: receiver=%s{%p}\n", receiver->class_name(), receiver); +#endif static_cast(event).m_invokee(*receiver); } else { receiver->event(event);