Added global flash string
This commit is contained in:
parent
9245b49e4c
commit
6edb2e5a21
@ -3,6 +3,9 @@
|
|||||||
#include <avr/pgmspace.h>
|
#include <avr/pgmspace.h>
|
||||||
|
|
||||||
#define F(str) (reinterpret_cast<const ::detail::FlashString *>(PSTR(str)))
|
#define F(str) (reinterpret_cast<const ::detail::FlashString *>(PSTR(str)))
|
||||||
|
#define GF(name, str) \
|
||||||
|
const char __##name[] PROGMEM = str; \
|
||||||
|
const auto *name = reinterpret_cast<const ::detail::FlashString *>(__##name)
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user