home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!math.fu-berlin.de!informatik.tu-muenchen.de!hphalle6!behrenss
- From: behrenss@Informatik.TU-Muenchen.DE (Soenke Behrens)
- Subject: Re: Print #define
- References: <1992Aug26.124652.9509@alw.nih.gov> <DeqcqB1w165w@bluemoon.rn.com> <1992Sep9.152715.8286@us-es.sel.de>
- Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem)
- Organization: Technische Universitaet Muenchen, Germany
- Date: Wed, 9 Sep 1992 15:53:44 GMT
- Message-ID: <behrenss.716054024@hphalle6>
- Lines: 19
-
- lisa@us-es.sel.de (Lisa Goulet) writes:
-
- >In K&R C, is there a way to print a preprocessor variable?
- >e.g. With the following define
- > #define Architecture hp300
- > to be able to print the "hp300" part.
-
- Not that I could think of a way to do that. You would need to get
- the macro into a character string, and CPP doesn't expand macros inside
- of character strings.
-
- Not that I could think of any necessity to do such a thing, either :)
-
- Soenke
- --
- ===========================================================================
- More than silver, more than gold, I need ! behrenss@informatik.
- electricity. I need it for my dreams. ! tu-muenchen.de
- (RACTER) ! FIDO: 2:246/13 Soenke Behrens
-