home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / c / 11515 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.1 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!ucbvax!ROUTH.KOSUFY.LU.SE!KOSU_MATSB
  2. From: KOSU_MATSB@ROUTH.KOSUFY.LU.SE
  3. Newsgroups: comp.lang.c
  4. Subject: Concatenation of two macros?
  5. Message-ID: <1FE7B81211DF800725@ursula.lucas.lu.se>
  6. Date: 23 Jul 92 12:00:50 GMT
  7. Sender: usenet@ucbvax.BERKELEY.EDU
  8. Lines: 18
  9. X-Unparsable-Date: Thu, 23 Jul 92 13:57 GMT+02
  10.  
  11.  
  12.     Concatenation of two macros. Is it possible?
  13.  
  14.     If i have the following two definitions:
  15.         #define A pre
  16.         #define B post
  17.     And want to "#define C" to be  "prepost" BUT as an 
  18.     expression of A and B! How do i do it?
  19.     #define C (expression of A and B to yield prepost)
  20.  
  21.         Sincerely/Mats B.
  22.  -----------------------------------  -----------------------------------
  23.  Mats Bergstrvm                       mats.bergstrom@kosufy.lu.se
  24.  Div of Cosmic and Subatomic Physics  kosu_matsb@130.235.92.17
  25.  Department of Physics                ROUTH::KOSU_MATSB (ROUTH::=57412::)
  26.  University of Lund                   Phone: (+46)104767
  27.  SWEDEN.                              Fax:   (+46)104709
  28.  -----------------------------------  -----------------------------------
  29.