mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 01:38:52 +00:00
LibCore: Hide deferred_invoke() debug spam.
This commit is contained in:
parent
6ef8e2df5a
commit
405fe4f72c
Notes:
sideshowbarker
2024-07-19 14:38:56 +09:00
Author: https://github.com/awesomekling
Commit: 405fe4f72c
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue