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: 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... Summary: 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