Article View: net.lang.c
Article #9475Re: Disappearing function call
From: John Plocher
Date: Fri, 03 Oct 1986 18:01
Date: Fri, 03 Oct 1986 18:01
25 lines
1288 bytes
1288 bytes
<f u cn rd ths, u hv no ln etr>
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
Technical Details
Message-ID:
<219@puff.wisc.edu>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!elbereth!rutgers!uwvax!puff!plocherReferences:
<357@cullvax.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!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...