Arduino KVComm
master
Key-Value pair communication library for Arduino
src
AH
Arduino-Wrapper.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
AH/Math/MinMaxFix.hpp
>
4
#include <AH/STL/type_traits>
5
6
AH_DIAGNOSTIC_EXTERNAL_HEADER
()
7
#include <Arduino.h> // min max
8
AH_DIAGNOSTIC_POP
()
9
10
AH_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
18
using
FlashString_t
= std::remove_reference<decltype(*
F
(
""
))>::type *;
19
20
#ifdef PSTR
21
#pragma pop_macro("PSTR")
22
#endif
23
24
AH_DIAGNOSTIC_POP
()
AH_DIAGNOSTIC_POP
#define AH_DIAGNOSTIC_POP()
Definition:
Warnings.hpp:17
FlashString_t
std::remove_reference< decltype(*F(""))>::type * FlashString_t
Definition:
Arduino-Wrapper.h:18
AH_DIAGNOSTIC_EXTERNAL_HEADER
#define AH_DIAGNOSTIC_EXTERNAL_HEADER()
Definition:
Warnings.hpp:18
F
#define F(x)
Definition:
KV_Error.hpp:38
AH_DIAGNOSTIC_WERROR
#define AH_DIAGNOSTIC_WERROR()
Definition:
Warnings.hpp:16
MinMaxFix.hpp
Generated by
1.8.16