aboutsummaryrefslogtreecommitdiff
path: root/src/ui/routed_event_dispatch.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-12-13 23:53:06 +0800
committercrupest <crupest@outlook.com>2019-12-13 23:53:06 +0800
commit221c62de313ad811ca2b3ae8ba43996c96c347bc (patch)
tree57419e033536e4a9aec0b3ecd26274120352a6f2 /src/ui/routed_event_dispatch.hpp
parentf452d4826ad4023c28d6dd59686b3cf5d6340235 (diff)
downloadcru-221c62de313ad811ca2b3ae8ba43996c96c347bc.tar.gz
cru-221c62de313ad811ca2b3ae8ba43996c96c347bc.tar.bz2
cru-221c62de313ad811ca2b3ae8ba43996c96c347bc.zip
...
Diffstat (limited to 'src/ui/routed_event_dispatch.hpp')
-rw-r--r--src/ui/routed_event_dispatch.hpp4
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;