idea4good / GuiLite

✔️The smallest header-only GUI library(4 KLOC) for all platforms
https://www.youtube.com/watch?v=grqXEz3bdC0
Apache License 2.0
7.42k stars 804 forks source link

Use std::max and std::min instead of custom macros #39

Closed Raincode closed 4 years ago

Raincode commented 4 years ago

Hello,

since this library uses C++, is there a specific reason not to use std::max and std::min, which IMHO are superior to defining custom macros:

#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))

Just a small suggestion I stumbled upon spontaneously :)

idea4good commented 4 years ago

I love STD, but some MCU IDE do not support STD, or STD would make bin file much bigger.