News for hackers. Stuff that matters.
Re:Maximal Min() and Max() by wahern on Thursday August 08, 2024 @03:33PM (#41195317)
The reason the current macro is so complex is because it supports mixed types while avoiding (failing on) integer promotion bugs. A version supporting arguments of all the same type would be just as trivial as in C++ (albeit relying on GCC extensions like statement expressions).

There are no comments on this comment yet.