Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!elbereth!rutgers!uwvax!puff!plocher From: plocher@puff.wisc.edu (John Plocher) Newsgroups: net.lang.c Subject: Re: Disappearing function call Message-ID: <219@puff.wisc.edu> Date: Fri, 3-Oct-86 14:01:55 EDT Article-I.D.: puff.219 Posted: Fri Oct 3 14:01:55 1986 Date-Received: Sat, 4-Oct-86 12:12:15 EDT References: <357@cullvax.UUCP> Reply-To: plocher@puff.WISC.EDU (John Plocher) Organization: U of Wisconsin CS Dept Lines: 25 Summary: see postings in net.sources... 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