On Thu, Apr 25, 2013 at 12:38:02PM +0200, markus schnalke wrote: > [2013-04-24 17:14] random...@fastmail.us > > > > A) Why do min and max need to be macros at all? > > That's the point, IMO. All the problems are introduced by performance > optimizations that might not even necessary. If you write it as a > function you simply don't need to care for double-evaluation. It will > just work as expected ... and in many cases the compiler will do the > optimization for you. Show me the case that really needs a macro!
When you want pass it any type of data? (of course, without using typeof)