Disappearing function call

John Plocher plocher at puff.wisc.edu
Sat Oct 4 04:01:55 AEST 1986


<f u cn rd ths, u hv no ln etr>

There were some debug routines posted in net.sources which use this format:

#ifdef DEBUG
#  define TRACE printf
#else
#  define TRACE
#endif
 ...
    TRACE("The error '%s' is on line %d\n", errorname, lineno);
 ...
which expands into
    printf(...) if DEBUG is defined,
and into
    (...) if not.   Note that (...) does NOT GENERATE CODE, but is rather
		    just an expression.

-- 
		harvard-\         /- uwmacc!uwhsms!plocher        (work)
John Plocher     seismo-->!uwvax!<
		  topaz-/         \- puff!plocher                 (school)

civil flames (ie. ones which are WORTH reading) only, please!
"Never trust an idea you get sitting down" - Nietzche



More information about the Comp.lang.c mailing list