Control Surface  1.2.0
MIDI Control Surface library for Arduino
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 
7 #include <Arduino.h> // min max
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 
AH_DIAGNOSTIC_POP
#define AH_DIAGNOSTIC_POP()
Definition: Warnings.hpp:36
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:37
MIDI_Notes::F
constexpr int8_t F
Definition: Notes.hpp:23
AH_DIAGNOSTIC_WERROR
#define AH_DIAGNOSTIC_WERROR()
Definition: Warnings.hpp:35
MinMaxFix.hpp