__STDC__ and non-strictly conforming ANSI C compilers

Bob Larson blarson at skat.usc.edu
Mon Dec 19 07:57:15 AEST 1988


In article <1988Dec18.043804.907 at utzoo.uucp> henry at utzoo.uucp (Henry Spencer) writes:
>There
>really ought to be a way for a program to specify that a predefinition
>of a particular identifier is expected.

#ifndef FROBUZ
    ??= error	FROBUZ must be pre-defined!
#endif

(Note use of trigraph so non-ansi compilers won't refuse to compile
this if FROBUZ is defined.  This may be the place trigraphs are realy
useful.)
-- 
Bob Larson	Arpa: Blarson at Ecla.Usc.Edu	blarson at skat.usc.edu
Uucp: {sdcrdcf,cit-vax}!oberon!skat!blarson
Prime mailing list:	info-prime-request%ais1 at ecla.usc.edu
			oberon!ais1!info-prime-request



More information about the Comp.std.c mailing list