summaryrefslogtreecommitdiff
path: root/common/layer_switch.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-03-20 00:26:01 +0900
committertmk <nobody@nowhere>2013-03-20 00:26:01 +0900
commitb057511f45de020c43021f2991569a53c2b929c9 (patch)
treef68be1f393692a9235a76f6d98739d8a614ad13c /common/layer_switch.h
parent16870412679225d1a3b46c78928757deb713ae08 (diff)
Add NO_ACTION_OVERLAY config option
Diffstat (limited to 'common/layer_switch.h')
-rw-r--r--common/layer_switch.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/common/layer_switch.h b/common/layer_switch.h
index a566ab12b7..5de6cb01c3 100644
--- a/common/layer_switch.h
+++ b/common/layer_switch.h
@@ -57,6 +57,7 @@ void keymap_debug(void);
/*
* Overlay Layer
*/
+#ifndef NO_ACTION_OVERLAY
extern uint16_t overlay_stat;
/* return current active layer */
uint8_t overlay_get_layer(void);
@@ -71,6 +72,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