home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!usc!cs.utexas.edu!sun-barr!ames!agate!linus!progress!briggs
- From: briggs@progress.COM (Scott Briggs)
- Subject: Re: Concatenation of two macros?
- Message-ID: <1992Jul23.152318.8369@progress.com>
- Sender: usenet@progress.com (Mr. Usenet)
- Nntp-Posting-Host: phanerozoic
- Organization: Progress Software Corp.
- References: <1FE7B81211DF800725@ursula.lucas.lu.se>
- Date: Thu, 23 Jul 1992 15:23:18 GMT
- Lines: 22
-
- KOSU_MATSB@ROUTH.KOSUFY.LU.SE writes:
-
-
- > Concatenation of two macros. Is it possible?
-
- > If i have the following two definitions:
- > #define A pre
- > #define B post
- > And want to "#define C" to be "prepost" BUT as an
- > expression of A and B! How do i do it?
- > #define C (expression of A and B to yield prepost)
-
- Depending on the compiler one of the following should work:
-
- #define C A##B
-
- or
-
- #define C A/**/B
-
-
- Scott.
-