Article View: net.lang.c
Article #9478Re: Disappearing function call
From: Gregory Smith
Date: Mon, 06 Oct 1986 14:48
Date: Mon, 06 Oct 1986 14:48
23 lines
1195 bytes
1195 bytes
In article <357@cullvax.UUCP> drw@cullvax.UUCP (Dale Worley) writes: >What I want to do is to write a function call of a variable number of >arguments: > > debug(x, y, z, ...) > >that will generate no code when the symbol DEBUG is not defined, but >generate a call of some function (say, debug_()) when it is. If You could write debug( ( x,y,z ) ); In the code, and #ifdef DEBUG # define debug(list) _debug list #else # define debug(list) #endif -- ---------------------------------------------------------------------- Greg Smith University of Toronto UUCP: ..utzoo!utcsri!greg
Technical Details
Message-ID:
<3452@utcsri.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utcsri!gregReferences:
<357@cullvax.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site utcsri.UUCP Path: arc1-ca.pugleaf.net!utzoo!utcsri!greg From: greg@utcsri.UUCP (Gregory Smith) Newsgroups: net.lang.c Subject: Re: Disappearing function call Message-ID: <3452@utcsri.UUCP> Date: Mon, 6-Oct-86 10:48:17 EDT Article-I.D.: utcsri.3452 Posted: Mon Oct 6 10:48:17 1986 Date-Received: Mon, 6-Oct-86 11:35:05 EDT References: <357@cullvax.UUCP> Reply-To: greg@utcsri.UUCP (Gregory Smith) Organization: CSRI, University of Toronto Lines: 23 Keywords: my $0.02 worth...