Arduino Helpers master
Utility library for Arduino
Arduino-Wrapper.h
Go to the documentation of this file.
1#pragma once
2
4#include <AH/STL/type_traits>
5
7#include <Arduino.h> // min max
9
10AH_DIAGNOSTIC_WERROR() // Enable errors on warnings
11
12#ifdef PSTR
13#pragma push_macro("PSTR")
14#undef PSTR
15#define PSTR(s) (s)
16#endif
17
18using FlashString_t = std::remove_reference<decltype(*F(""))>::type *;
19
20#ifdef PSTR
21#pragma pop_macro("PSTR")
22#endif
23
std::remove_reference< decltype(*F(""))>::type * FlashString_t
#define AH_DIAGNOSTIC_EXTERNAL_HEADER()
Definition: Warnings.hpp:51
#define AH_DIAGNOSTIC_POP()
Definition: Warnings.hpp:50
#define AH_DIAGNOSTIC_WERROR()
Definition: Warnings.hpp:49