mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 19:25:07 +00:00
LibCore: Hide deferred_invoke() debug spam.
This commit is contained in:
parent
6ef8e2df5a
commit
405fe4f72c
1 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
||||||
#include <LibC/stdlib.h>
|
#include <LibC/stdlib.h>
|
||||||
|
|
||||||
//#define CEVENTLOOP_DEBUG
|
//#define CEVENTLOOP_DEBUG
|
||||||
|
//#define DEFERRED_INVOKE_DEBUG
|
||||||
|
|
||||||
static CEventLoop* s_main_event_loop;
|
static CEventLoop* s_main_event_loop;
|
||||||
static Vector<CEventLoop*>* s_event_loop_stack;
|
static Vector<CEventLoop*>* s_event_loop_stack;
|
||||||
|
@ -110,7 +111,9 @@ int CEventLoop::exec()
|
||||||
dbgprintf("Event type %u with no receiver :(\n", event.type());
|
dbgprintf("Event type %u with no receiver :(\n", event.type());
|
||||||
}
|
}
|
||||||
} else if (event.type() == CEvent::Type::DeferredInvoke) {
|
} else if (event.type() == CEvent::Type::DeferredInvoke) {
|
||||||
|
#ifdef DEFERRED_INVOKE_DEBUG
|
||||||
printf("DeferredInvoke: receiver=%s{%p}\n", receiver->class_name(), receiver);
|
printf("DeferredInvoke: receiver=%s{%p}\n", receiver->class_name(), receiver);
|
||||||
|
#endif
|
||||||
static_cast<CDeferredInvocationEvent&>(event).m_invokee(*receiver);
|
static_cast<CDeferredInvocationEvent&>(event).m_invokee(*receiver);
|
||||||
} else {
|
} else {
|
||||||
receiver->event(event);
|
receiver->event(event);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue