Browse Source

Fix errors in _P macros using elipses

main
Andrew J. Kroll 11 years ago
parent
commit
438f11ef7c
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      teensy3/avr/pgmspace.h

+ 7
- 7
teensy3/avr/pgmspace.h View File

#define strsep_P(strp, delim) strsep((strp), (delim)) #define strsep_P(strp, delim) strsep((strp), (delim))
#define strspn_P(str, chrs) strspn((str), (chrs)) #define strspn_P(str, chrs) strspn((str), (chrs))
#define strstr_P(a, b) strstr((a), (b)) #define strstr_P(a, b) strstr((a), (b))
#define sprintf_P(s, f, ...) sprintf((s), (f), __VA_ARGS__)
#define vfprintf_P(s, f, ...) vfprintf((s), (f), __VA_ARGS__)
#define printf_P(f, ...) printf((f), __VA_ARGS__)
#define snprintf_P(s, n, f, ...) ((s), (n), (f), __VA_ARGS__)
#define vsprintf_P(s, f, ...) ((s), (f),__VA_ARGS__)
#define vsnprintf_P(s, n, f, ...) ((s), (n), (f),__VA_ARGS__)
#define fprintf_P(s, f, ...) ((s), (f),__VA_ARGS__)
#define sprintf_P(s, ...) sprintf((s), __VA_ARGS__)
#define vfprintf_P(s, ...) vfprintf((s), __VA_ARGS__)
#define printf_P(...) printf(__VA_ARGS__)
#define snprintf_P(s, n, ...) ((s), (n), __VA_ARGS__)
#define vsprintf_P(s, ...) ((s),__VA_ARGS__)
#define vsnprintf_P(s, n, ...) ((s), (n),__VA_ARGS__)
#define fprintf_P(s, ...) ((s), __VA_ARGS__)


#define pgm_read_byte(addr) (*(const unsigned char *)(addr)) #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
#define pgm_read_word(addr) (*(const unsigned short *)(addr)) #define pgm_read_word(addr) (*(const unsigned short *)(addr))

Loading…
Cancel
Save