diff options
author | tmk <nobody@nowhere> | 2013-03-21 15:44:33 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-03-21 15:44:33 +0900 |
commit | 2b08a150a41e25e87362436b7307bb1be35529f3 (patch) | |
tree | e176fafe0e7723612f7fb34b88105ea892f35404 /common/layer_switch.h | |
parent | 8580c8d291a432d5004c46321aa3c1b1626cdadd (diff) | |
parent | b2a19328ad35f51dcc9cef7c4d2801acd143582a (diff) | |
download | qmk_firmware-2b08a150a41e25e87362436b7307bb1be35529f3.tar.gz qmk_firmware-2b08a150a41e25e87362436b7307bb1be35529f3.zip |
Merge branch 'add_build_options'
Diffstat (limited to 'common/layer_switch.h')
-rw-r--r-- | common/layer_switch.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/common/layer_switch.h b/common/layer_switch.h index a566ab12b7..eb4cf61ba3 100644 --- a/common/layer_switch.h +++ b/common/layer_switch.h @@ -38,6 +38,7 @@ void default_layer_set(uint8_t layer); /* * Keymap Layer */ +#ifndef NO_ACTION_KEYMAP extern uint16_t keymap_stat; /* return current active layer */ uint8_t keymap_get_layer(void); @@ -52,11 +53,26 @@ void keymap_or(uint16_t stat); void keymap_and(uint16_t stat); void keymap_xor(uint16_t stat); void keymap_debug(void); +#else +#define keymap_stat 0 +#define keymap_get_layer() +#define keymap_clear() +#define keymap_set(stat) +#define keymap_move(layer) +#define keymap_on(layer) +#define keymap_off(layer) +#define keymap_invert(layer) +#define keymap_or(stat) +#define keymap_and(stat) +#define keymap_xor(stat) +#define keymap_debug() +#endif /* * Overlay Layer */ +#ifndef NO_ACTION_OVERLAY extern uint16_t overlay_stat; /* return current active layer */ uint8_t overlay_get_layer(void); @@ -71,6 +87,20 @@ void overlay_or(uint16_t stat); void overlay_and(uint16_t stat); void overlay_xor(uint16_t stat); void overlay_debug(void); +#else +#define overlay_stat 0 +#define overlay_get_layer() +#define overlay_clear() +#define overlay_set(stat) +#define overlay_move(layer) +#define overlay_on(layer) +#define overlay_off(layer) +#define overlay_invert(layer) +#define overlay_or(stat) +#define overlay_and(stat) +#define overlay_xor(stat) +#define overlay_debug() +#endif |