]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - common/action_macro.h
Added standard layouts for ANSI and ISO. Moved the initial layout from alaricljs...
[max/tmk_keyboard.git] / common / action_macro.h
index 3833c7c8aecb2dce9cb682c886057544a5241e65..eea8ef57d173645109b674dff85aa9228da9474b 100644 (file)
@@ -20,11 +20,18 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include <avr/pgmspace.h>
 
 
+#define MACRO_NONE  0
+#define MACRO(...) ({ static const macro_t __m[] PROGMEM = { __VA_ARGS__ }; &__m[0]; })
+
+
 typedef uint8_t macro_t;
-typedef macro_t prog_macro_t PROGMEM;
 
 
-void action_macro_play(const prog_macro_t *macro);
+#ifndef NO_ACTION_MACRO
+void action_macro_play(const macro_t *macro_p);
+#else
+#define action_macro_play(macro)
+#endif