Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f7f2a51

Browse filesBrowse files
Merge pull request FabioBatSilva#15 from arduhe/clashmin
avoid clashes with std::min and std:max from STL
2 parents 5f003df + cd35dbc commit f7f2a51
Copy full SHA for f7f2a51

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎src/arduino/Arduino.h

Copy file name to clipboardExpand all lines: src/arduino/Arduino.h
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ void yield(void);
8888
#undef abs
8989
#endif
9090

91+
#ifndef __cplusplus
9192
#define min(a,b) ((a)<(b)?(a):(b))
9293
#define max(a,b) ((a)>(b)?(a):(b))
94+
#endif
9395
#define abs(x) ((x)>0?(x):-(x))
9496
#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
9597
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.