summaryrefslogtreecommitdiff
path: root/common/action_macro.h
diff options
context:
space:
mode:
authortmk2013-03-05 15:45:15 +0900
committertmk2013-03-05 15:45:15 +0900
commit38bbe976e00a9a7bf6f8157016717e80503bf6a9 (patch)
tree9113cd57c1bff3deef394ee966e2fdac8731a244 /common/action_macro.h
parent1720cf34caa518a2cf85f286d1ca077ebe1a1451 (diff)
parent5808317b694004c43a6e0f76e9715415cce19a25 (diff)
Merge branch 'overlays'
Diffstat (limited to 'common/action_macro.h')
-rw-r--r--common/action_macro.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/action_macro.h b/common/action_macro.h
index 3833c7c8a..db6577959 100644
--- a/common/action_macro.h
+++ b/common/action_macro.h
@@ -20,6 +20,10 @@ 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;