Added global flash string

This commit is contained in:
BlackMark 2020-04-01 03:52:49 +02:00
parent 9245b49e4c
commit 6edb2e5a21

View File

@ -3,6 +3,9 @@
#include <avr/pgmspace.h>
#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 {