From 6edb2e5a21e0ce58ff2df936caee8b84e240a46b Mon Sep 17 00:00:00 2001 From: BlackMark Date: Wed, 1 Apr 2020 03:52:49 +0200 Subject: [PATCH] Added global flash string --- flash.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flash.hpp b/flash.hpp index 9cfd8e1..9721229 100644 --- a/flash.hpp +++ b/flash.hpp @@ -3,6 +3,9 @@ #include #define F(str) (reinterpret_cast(PSTR(str))) +#define GF(name, str) \ + const char __##name[] PROGMEM = str; \ + const auto *name = reinterpret_cast(__##name) namespace detail {