How can I find out cc or cpp symbols?
Felix Lee
flee at shire.cs.psu.edu
Tue May 9 07:15:24 AEST 1989
Here's an extraordinarily silly idea for <default.h>. Since the list
of predefined symbols can vary due to environment and compilation
flags such as -U, <default.h> 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 at shire.cs.psu.edu *!psuvax1!shire!flee
More information about the Comp.unix.questions
mailing list