Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!iuvax!noose.ecn.purdue.edu!mentor.cc.purdue.edu!nostromo.cc.purdue.edu!ksb From: ksb@nostromo.cc.purdue.edu (Kevin Braunsdorf) Newsgroups: comp.sources.d Subject: Re: #defineing debug() ... Summary: Enough! Answer the question he asked! Keywords: DEBUG prints, output, conditional, removed Message-ID: <10572@mentor.cc.purdue.edu> Date: 8 May 90 19:49:02 GMT References: <1990May8.190247.8379@eddie.mit.edu> Sender: news@mentor.cc.purdue.edu Followup-To: comp.lang.c Organization: Purdue UNIX Group Lines: 16 /* Pick just one: */ #define DEBUG printf /* always output debug stuff */ #define DEBUG if (debug) printf /* when run time switched */ #define DEBUG if (0) (void) /* when not debugging */ DEBUG("Answer the question asked, please\n"); DEBUG("Avoid side effects in debug code at all costs!\n"); -- "Going deeper than most - getting harder to touch?" Kevin Braunsdorf, ksb@cc.purdue.edu, pur-ee!ksb, purdue!ksb