🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #471

Re: GCPP extension

#471
From: Fergus James HENDERSON
Date: Sun, 11 Oct 1992 14:43
17 lines
1278 bytes
lele@itnsg1.cineca.it (Lele Gaifax) writes:

>I was wondering on this for enough time... 
>From the GNU point of view, is there valid reason to not extend the #define
>syntax so to avoid using backslashes to build a long definition?

Yes: you can get the same functionality, and a *much* better semantics,
by using inline functions. Inline functions are a C++ extension, but
Gnu C also supports them for plain C.

[you might have to use the __inline__ keyword instead of just inline, I forget]

-- 
Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
This .signature virus is a self-referential statement that is true - but 
you will only be able to consistently believe it if you copy it to your own
.signature file!
Technical Details
Message-ID: <9228600.27078@mulga.cs.mu.OZ.AU>
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!ucsbcsl!mustang.mst6.lanl.gov!nntp-server.caltech.edu!elroy.jpl.nasa.gov!ames!pacbell.com!network.ucsd.edu!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
References: <1992Oct9.144505.20396@itnsg1.cineca.it>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!ucsbcsl!mustang.mst6.lanl.gov!nntp-server.caltech.edu!elroy.jpl.nasa.gov!ames!pacbell.com!network.ucsd.edu!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
Newsgroups: gnu.gcc.help
Subject: Re: GCPP extension
Message-ID: <9228600.27078@mulga.cs.mu.OZ.AU>
Date: 11 Oct 92 14:43:26 GMT
References: <1992Oct9.144505.20396@itnsg1.cineca.it>
Sender: news@cs.mu.OZ.AU
Organization: Computer Science, University of Melbourne, Australia
Lines: 17