From ecb7550a91a7fb9a2e7e717f3c0d40d30fd92121 Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 20 Mar 2013 00:37:32 +0900 Subject: [PATCH] Add NO_ACTION_FUNCTION config option --- common/action.c | 4 ++++ keyboard/gh60/config.h | 1 + 2 files changed, 5 insertions(+) diff --git a/common/action.c b/common/action.c index eda3a6d3..51b11d1b 100644 --- a/common/action.c +++ b/common/action.c @@ -688,14 +688,18 @@ static void process_action(keyrecord_t *record) #endif /* Extentions */ +#ifndef NO_ACTION_MACRO case ACT_MACRO: action_macro_play(action_get_macro(record, action.func.id, action.func.opt)); break; +#endif case ACT_COMMAND: break; +#ifndef NO_ACTION_FUNCTION case ACT_FUNCTION: action_function(record, action.func.id, action.func.opt); break; +#endif default: break; } diff --git a/keyboard/gh60/config.h b/keyboard/gh60/config.h index bf580764..2e2387aa 100644 --- a/keyboard/gh60/config.h +++ b/keyboard/gh60/config.h @@ -64,5 +64,6 @@ along with this program. If not, see . #define NO_ACTION_OVERLAY #define NO_ACTION_TAPPING #define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION #endif -- 2.46.2