🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5319

Re: Variable length arg lists for macros

#5319
From: ML
Date: Thu, 01 Sep 1988 02:58
21 lines
1168 bytes
In a previous article u5565522@ucsvc.unimelb.edu.au (David Clunie) wrote:
>How do people feel about the idea of preprocessor macros with variable
>length argument lists ?


I for one would love it.  Plenty of times I've wanted macros like:

#define trace(...)  if (TraceFlag) fprintf(stderr, ...)
#define crash(rc,...)  { fprintf(stderr,...); return(rc); }

etc. etc.

This seems like it would be a simple and useful addition to the preprocessor,
and one which could be implemented in a fairly painless way.  Would it really
be that difficult to add to the standard?  (No flames please, that's a 
serious question based upon my own ignorance :-)

One yes vote here...

             Mark Lanzo
     borrowing      ...!mcnc!ece-csc!rss
Technical Details
Message-ID: <3755@ece-csc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!mailrus!tut.cis.ohio-state.edu!cwjcc!gatech!ncsuvx!ece-csc!rss
References: <438@ucsvc.unimelb.edu.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!mailrus!tut.cis.ohio-state.edu!cwjcc!gatech!ncsuvx!ece-csc!rss
From: rss@ece-csc.UUCP (ML)
Newsgroups: comp.std.c
Subject: Re: Variable length arg lists for macros
Message-ID: <3755@ece-csc.UUCP>
Date: 1 Sep 88 02:58:30 GMT
References: <438@ucsvc.unimelb.edu.au>
Reply-To: rss@ece-csc.UUCP (ML)
Organization: the loony bin
Lines: 21