/* return layer effective for key at this time */
static uint8_t current_layer_for_key(keypos_t key)
{
- action_t action = ACTION_TRANSPARENT;
-
#ifndef NO_ACTION_LAYER
+ action_t action = ACTION_TRANSPARENT;
uint32_t layers = layer_state | default_layer_state;
/* check top layer first */
for (int8_t i = 31; i >= 0; i--) {
void default_layer_or(uint32_t state);
void default_layer_and(uint32_t state);
void default_layer_xor(uint32_t state);
-#else
-#define default_layer_or(state)
-#define default_layer_and(state)
-#define default_layer_xor(state)
#endif
void layer_or(uint32_t state);
void layer_and(uint32_t state);
void layer_xor(uint32_t state);
-#else
-#define layer_state 0
-#define layer_clear()
-#define layer_move(layer)
-#define layer_on(layer)
-#define layer_off(layer)
-#define layer_invert(layer)
-
-#define layer_or(state)
-#define layer_and(state)
-#define layer_xor(state)
-#define layer_debug()
#endif