#define DEBUG... (using printf for debugging)

Doug Gwyn gwyn at smoke.BRL.MIL
Fri May 4 06:13:42 AEST 1990


Organization: U.S. Army Ballistic Research Laboratory

In article <40628 at cornell.UUCP> gordon at cs.cornell.edu (Jeffrey  Adam Gordon) writes:
>	DEBUG ("debugging information");
>Well, I've been rambling trying to describe the problem.  Basically,
>does anyone have an idea how I can do the above easily and elegantly?

There are several viable approaches, but PLEASE don't carry on this
discussion in all the groups you posted to:
	comp.lang.c,comp.unix.wizards,alt.sources,comp.sources.d,misc.misc
when comp.lang.c is the proper forum.

The simplest solution in the terms in which you originally designed
your use of DEBUG is to
	#define DEBUG
or
	#define	DEBUG	(void)
to turn off the printf.



More information about the Comp.lang.c mailing list