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