diff options
Diffstat (limited to 'src/ui/routed_event_dispatch.hpp')
| -rw-r--r-- | src/ui/routed_event_dispatch.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/routed_event_dispatch.hpp b/src/ui/routed_event_dispatch.hpp index 666be9ac..dd55ce17 100644 --- a/src/ui/routed_event_dispatch.hpp +++ b/src/ui/routed_event_dispatch.hpp @@ -24,6 +24,10 @@ void DispatchEvent(const std::string_view& event_name, Control* const original_sender, event::RoutedEvent<EventArgs>* (Control::*event_ptr)(), Control* const last_receiver, Args&&... args) { +#ifndef CRU_DEBUG + CRU_UNUSED(event_name) +#endif + #ifdef CRU_DEBUG bool do_log = true; if (event_name == "MouseMove") do_log = false; |
