From b0f602b3be5608d71a401f5c75609f09e92df4a9 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sat, 27 Jul 2019 13:34:07 +0200 Subject: [PATCH] Implemented flash string --- flash.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/flash.hpp b/flash.hpp index e69de29..dc27bec 100644 --- a/flash.hpp +++ b/flash.hpp @@ -0,0 +1,12 @@ +#pragma once + +#include + +#define F(str) (reinterpret_cast(PSTR(str))) + +namespace detail { + +// Only used for C++ type safety, because otherwise a PSTR would be indistinguishable from a normal c-string +struct FlashString; + +} // namespace detail