Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: #define DEBUG... (using printf for debugging) Message-ID: <12780@smoke.BRL.MIL> Date: 3 May 90 20:13:42 GMT References: <11290@hoptoad.uucp> <40628@cornell.UUCP> Followup-To: comp.lang.c Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 18 Organization: U.S. Army Ballistic Research Laboratory In article <40628@cornell.UUCP> gordon@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.