Where are MIN and MAX defined in C, if at all?
MIN
MAX
What is the best way to implement these, as generically and type safely as possible? (Compil
Looks like Windef.h (a la #include ) has max and min (lower case) macros, that also suffer from the "double evaluation" difficulty, but they're there for those that don't want to re-roll their own :)
Windef.h
#include
max
min