forked from mirrors/qmk_userspace
Add MACRO action
This commit is contained in:
parent
000f3c4c54
commit
23c32d304b
4 changed files with 39 additions and 30 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue