1
0
Fork 0

[Core] guard action related debug messages (#19348)

This commit is contained in:
Stefan Kerkmann 2022-12-15 23:38:25 +01:00 committed by GitHub
parent 233ae20d33
commit dedc54a328
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 99 additions and 158 deletions

View file

@ -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);