From 23c32d304bcc5146a575e547bba80ee8d86a2856 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 25 Feb 2013 15:30:37 +0900 Subject: Add MACRO action --- common/action_macro.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/action_macro.h') diff --git a/common/action_macro.h b/common/action_macro.h index 3833c7c8ae..db65779590 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; -- cgit v1.2.3