home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / gnu / gcc / help / 2302 < prev    next >
Encoding:
Internet Message Format  |  1992-10-11  |  1.2 KB

  1. Path: 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
  2. From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
  3. Newsgroups: gnu.gcc.help
  4. Subject: Re: GCPP extension
  5. Message-ID: <9228600.27078@mulga.cs.mu.OZ.AU>
  6. Date: 11 Oct 92 14:43:26 GMT
  7. References: <1992Oct9.144505.20396@itnsg1.cineca.it>
  8. Sender: news@cs.mu.OZ.AU
  9. Organization: Computer Science, University of Melbourne, Australia
  10. Lines: 17
  11.  
  12. lele@itnsg1.cineca.it (Lele Gaifax) writes:
  13.  
  14. >I was wondering on this for enough time... 
  15. >From the GNU point of view, is there valid reason to not extend the #define
  16. >syntax so to avoid using backslashes to build a long definition?
  17.  
  18. Yes: you can get the same functionality, and a *much* better semantics,
  19. by using inline functions. Inline functions are a C++ extension, but
  20. Gnu C also supports them for plain C.
  21.  
  22. [you might have to use the __inline__ keyword instead of just inline, I forget]
  23.  
  24. -- 
  25. Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
  26. This .signature virus is a self-referential statement that is true - but 
  27. you will only be able to consistently believe it if you copy it to your own
  28. .signature file!
  29.