Add MACRO action

This commit is contained in:
tmk 2013-02-25 15:30:37 +09:00
parent 000f3c4c54
commit 23c32d304b
4 changed files with 39 additions and 30 deletions

View 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;