summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-20 12:48:49 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-20 12:48:49 +0200
commit405fe4f72c9b8e7de24e9f43ca2c75e4f4cf1983 (patch)
treea74f8f7506ad5018d852b64dc3063c44280a3448
parent6ef8e2df5a6c5689d6993cfb5395e7d334a2bc90 (diff)
downloadserenity-405fe4f72c9b8e7de24e9f43ca2c75e4f4cf1983.zip
LibCore: Hide deferred_invoke() debug spam.
-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);