aboutsummaryrefslogtreecommitdiff
path: root/common/action_macro.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/action_macro.h')
-rw-r--r--common/action_macro.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/action_macro.h b/common/action_macro.h
index 621826308..aedc32ec6 100644
--- a/common/action_macro.h
+++ b/common/action_macro.h
@@ -17,12 +17,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17#ifndef ACTION_MACRO_H 17#ifndef ACTION_MACRO_H
18#define ACTION_MACRO_H 18#define ACTION_MACRO_H
19#include <stdint.h> 19#include <stdint.h>
20#include <avr/pgmspace.h> 20#include "progmem.h"
21 21
22 22
23#define MACRO_NONE 0 23#define MACRO_NONE 0
24#define MACRO(...) ({ static const macro_t __m[] PROGMEM = { __VA_ARGS__ }; &__m[0]; }) 24#define MACRO(...) ({ static const macro_t __m[] PROGMEM = { __VA_ARGS__ }; &__m[0]; })
25 25#define MACRO_GET(p) pgm_read_byte(p)
26 26
27typedef uint8_t macro_t; 27typedef uint8_t macro_t;
28 28