Xref: utzoo comp.unix.questions:13397 comp.std.c:1172 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!psuvax1!flee From: flee@shire.cs.psu.edu (Felix Lee) Newsgroups: comp.unix.questions,comp.std.c Subject: Re: How can I find out cc or cpp symbols? Message-ID: Date: 8 May 89 21:15:24 GMT References: <1954@trantor.harris-atd.com> <10084@smoke.BRL.MIL> <1339@ncr-sd.SanDiego.NCR.COM> <10214@smoke.BRL.MIL> <849@mtxinu.UUCP> Sender: news@psuvax1.cs.psu.edu Organization: Penn State University Computer Science Lines: 18 In-reply-to: ed@mtxinu.COM's message of 8 May 89 19:02:13 GMT Here's an extraordinarily silly idea for . Since the list of predefined symbols can vary due to environment and compilation flags such as -U, should look something like #ifdef unix #define unix 1 #endif except that this would break with "-Uunix -Dunix=bsd", so you have #ifdef unix /* #define unix 1 */ #endif I'd complain if the compiler documentation didn't list predefined symbols or tell you a method of finding predefined symbols. Now, being able to say something like #pragma dumpdefines at an arbitrary point would be interesting. -- Felix Lee flee@shire.cs.psu.edu *!psuvax1!shire!flee