2019-07-27 13:34:07 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <avr/pgmspace.h>
|
|
|
|
|
|
|
|
#define F(str) (reinterpret_cast<const detail::FlashString *>(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
|