diff options
| author | tmk <nobody@nowhere> | 2013-02-25 15:30:37 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-02-25 15:30:37 +0900 |
| commit | 23c32d304bcc5146a575e547bba80ee8d86a2856 (patch) | |
| tree | d7826faa7e6d3648cffa21ae163fe1e369caf384 /common/action_macro.h | |
| parent | 000f3c4c543e0c4490787ccc3a8920d4ee0692ec (diff) | |
| download | qmk_firmware-23c32d304bcc5146a575e547bba80ee8d86a2856.tar.gz qmk_firmware-23c32d304bcc5146a575e547bba80ee8d86a2856.zip | |
Add MACRO action
Diffstat (limited to 'common/action_macro.h')
| -rw-r--r-- | common/action_macro.h | 4 |
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/>. | |||
| 20 | #include <avr/pgmspace.h> | 20 | #include <avr/pgmspace.h> |
| 21 | 21 | ||
| 22 | 22 | ||
| 23 | #define MACRO_NONE 0 | ||
| 24 | #define MACRO(...) ({ static prog_macro_t _m[] PROGMEM = { __VA_ARGS__ }; _m; }) | ||
| 25 | |||
| 26 | |||
| 23 | typedef uint8_t macro_t; | 27 | typedef uint8_t macro_t; |
| 24 | typedef macro_t prog_macro_t PROGMEM; | 28 | typedef macro_t prog_macro_t PROGMEM; |
| 25 | 29 | ||
