X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=common%2Faction_macro.h;h=db657795904f6d3ec3ccf598ca28f4ec6a73d989;hb=8580c8d291a432d5004c46321aa3c1b1626cdadd;hp=3833c7c8aecb2dce9cb682c886057544a5241e65;hpb=aad91a30a34d61739e1261bb82a1cb1ace581afa;p=max%2Ftmk_keyboard.git diff --git a/common/action_macro.h b/common/action_macro.h index 3833c7c8..db657795 100644 --- a/common/action_macro.h +++ b/common/action_macro.h @@ -20,6 +20,10 @@ along with this program. If not, see . #include +#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;