]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - common/action_macro.h
Merge branch 'debouncing_fix'
[tmk_firmware.git] / common / action_macro.h
index 3833c7c8aecb2dce9cb682c886057544a5241e65..db657795904f6d3ec3ccf598ca28f4ec6a73d989 100644 (file)
@@ -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;