We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5f003df + cd35dbc commit f7f2a51Copy full SHA for f7f2a51
1 file changed
src/arduino/Arduino.h
@@ -88,8 +88,10 @@ void yield(void);
88
#undef abs
89
#endif
90
91
+#ifndef __cplusplus
92
#define min(a,b) ((a)<(b)?(a):(b))
93
#define max(a,b) ((a)>(b)?(a):(b))
94
+#endif
95
#define abs(x) ((x)>0?(x):-(x))
96
#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
97
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
0 commit comments