]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - common/action_macro.h
Rename file layer_switch to action_layer
[tmk_firmware.git] / common / action_macro.h
index 3833c7c8aecb2dce9cb682c886057544a5241e65..ee5c7c4266db059946540e7d0789e82d1f000e57 100644 (file)
@@ -20,11 +20,19 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include <avr/pgmspace.h>
 
 
+#define MACRO_NONE  0
+#define MACRO(...) ({ static prog_macro_t _m[] PROGMEM = { __VA_ARGS__ }; _m; })
+
+
 typedef uint8_t macro_t;
 typedef macro_t prog_macro_t PROGMEM;
 
 
+#ifndef NO_ACTION_MACRO
 void action_macro_play(const prog_macro_t *macro);
+#else
+#define action_macro_play(macro)
+#endif