#defineing debug() ...

Richard Caloggero rich at eddie.mit.edu
Wed May 9 05:02:47 AEST 1990


/* How about the following... */
/* Please mail to "rich at eddie.mit.edu" if there is a reason why this isn't a good technique!!! */
/* If you want debuging info to go to stderr, this won't work. */

#ifdef DEBUG_SWITCH
#define debug printf
#else
#define debug
#endif

main()
{
int stuff = 777;
debug ("stuff = %d", stuff);
}

-- 
						-- Rich (Richard Caloggero)	 (rich at eddie.mit.edu).
	The circle is open, but unbroken.
	Merry meet, merry part,
	and merry meet again.



More information about the Alt.sources mailing list