summaryrefslogtreecommitdiff
path: root/LibCore
diff options
context:
space:
mode:
Diffstat (limited to 'LibCore')
-rw-r--r--LibCore/CEventLoop.cpp3
1 files changed, 3 insertions, 0 deletions
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 <LibC/stdlib.h>
//#define CEVENTLOOP_DEBUG
+//#define DEFERRED_INVOKE_DEBUG
static CEventLoop* s_main_event_loop;
static Vector<CEventLoop*>* 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<CDeferredInvocationEvent&>(event).m_invokee(*receiver);
} else {
receiver->event(event);