Re: function -> macro



On Fri, 15 Jun 2007 21:46:47 +0200, in comp.lang.c , "Army1987"
<please.ask@xxxxxx> wrote:


"Mark McIntyre" <markmcintyre@xxxxxxxxxxx> ha scritto nel messaggio
news:ugd57396fd1v8qkce7l85pok5d2ebosoj0@xxxxxxxxxx
Remember, you're callling this via a macro.
#include <errno.h>
#define factorial(n) \

(snip macro that could suck bowling balls through a drinking straw)

} while (0) /*I'm not saying that it doesn't suck...*/

*phew*
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
.



Relevant Pages