Finding out what is defined

Jerry Williams jwilliam at javelin.es.com
Mon Mar 18 14:57:48 AEST 1991


I would like to find out what is defined for a given compiler.
For example on a VAX running VMS vax is defined so the following works.
#ifdef vax
	printf("vax is defined !\n");
#endif
And the same works for a sun or a 386 using i386.
The question is, is there a way to find out what these are without
looking through the include files for a given system or guessing
at them? Is any of this documented somewhere or is it just something
everyone decided to do to be nice?

Jerry
-- 
Jerry Williams @ Evans & Sutherland  560 Arapeen Drive, SLC, Utah 84108
jwilliam at javelin.sim.es.com     or   jwilliam%javelin at sim.es.com
...sim.es.com!javelin!jwilliam  or   {decwrl, utah-cs}!esunix!jwilliam



More information about the Comp.lang.c mailing list