How to force cpp to abort?

Michael Meissner meissner at osf.org
Tue Aug 14 03:21:21 AEST 1990


In article <MIKEG.90Aug13092741 at c3.c3.lanl.gov> mikeg at c3.c3.lanl.gov
(Michael P. Gerlek) writes:

| So, academic question: from what I understand, #error isn't guaranteed
| to stop compilation.  Can someone tell me why there isn't something
| like an "#abort error-message-here" directive that *would* terminate?
| Seems like this'd be really useful...

I always use something like:

	int double error;	/* reason */

It's grungy, but it should generate an error on anything that calls
itself a C compiler.
--
Michael Meissner	email: meissner at osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

Do apple growers tell their kids money doesn't grow on bushes?



More information about the Comp.lang.c mailing list