Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!randvax!segue!jim From: jim@segue.segue.com (Jim Balter) Newsgroups: comp.unix.questions Subject: Re: Preprocessor Usage Question Message-ID: <7324@segue.segue.com> Date: 29 Apr 91 23:32:03 GMT References: <1991Apr25.193750.16702@ssd.kodak.com> <1991Apr25.234340.22311@athena.mit.edu> Reply-To: jim@segue.segue.com (Jim Balter) Organization: Segue Software, Inc. - Santa Monica, CA. +1-213-453-2161 Lines: 23 In article <1991Apr25.234340.22311@athena.mit.edu> jik@athena.mit.edu (Jonathan I. Kamens) writes: > I guess the summary of all this is that something like this > > #ifdef __STDC__ > #define RADIO(x) a_##x > #else > #define RADIO(x) a_/**/x > #endif > >is the best you can do. Actually #ifdef __STDC__ #define RADIO(x) a_##x #else #define IDENT(x)x #define RADIO(x) IDENT(a_)x #endif is better, because it works for more cpp's. It could fail for a non-ANSI cpp that has ANSI-style tokenization. The IDRIS (the what?) cpp might fit that bill.