aboutsummaryrefslogtreecommitdiffstats
path: root/common/layer_switch.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/layer_switch.h')
-rw-r--r--common/layer_switch.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/common/layer_switch.h b/common/layer_switch.h
index a566ab12b..eb4cf61ba 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