summaryrefslogtreecommitdiff
path: root/quantum/action.h
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2022-12-15 23:38:25 +0100
committerGitHub <noreply@github.com>2022-12-15 23:38:25 +0100
commitdedc54a328ab900f47da8478bd9c6b7d14891e15 (patch)
tree39e81f9607764b5ebf325307c968d8eae7f3604a /quantum/action.h
parent233ae20d33deda9a79515953dce5adb96c7c16b0 (diff)
[Core] guard action related debug messages (#19348)
Diffstat (limited to 'quantum/action.h')
-rw-r--r--quantum/action.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/quantum/action.h b/quantum/action.h
index 2bc46429b2..e4d28ba947 100644
--- a/quantum/action.h
+++ b/quantum/action.h
@@ -112,7 +112,19 @@ bool is_tap_action(action_t action);
void process_record_tap_hint(keyrecord_t *record);
#endif
-/* debug */
+////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// Helpers
+
+#ifdef ACTION_DEBUG
+# include "debug.h"
+# include "print.h"
+# define ac_dprintf(...) dprintf(__VA_ARGS__)
+#else
+# define ac_dprintf(...) \
+ do { \
+ } while (0)
+#endif
+
void debug_event(keyevent_t event);
void debug_record(keyrecord_t record);
void debug_action(action_t action);