We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a02bfc commit 910ab64Copy full SHA for 910ab64
api/Common.h
@@ -93,7 +93,7 @@ typedef void (*voidFuncPtrParam)(void*);
93
#endif
94
95
/* TODO: request for removal */
96
-typedef bool boolean;
+typedef bool boolean __attribute__((deprecated));
97
typedef uint8_t byte;
98
typedef uint16_t word;
99
@@ -141,13 +141,13 @@ void loop(void);
141
142
143
#ifdef __cplusplus
144
- template<class T, class L>
+ template<class T, class L>
145
auto min(const T& a, const L& b) -> decltype((b < a) ? b : a)
146
{
147
return (b < a) ? b : a;
148
}
149
150
151
auto max(const T& a, const L& b) -> decltype((b < a) ? b : a)
152
153
return (a < b) ? b : a;
0 commit comments