ANSI C preprocessor

Ray Butterworth rbutterworth at watmath.UUCP
Fri Jan 16 01:28:46 AEST 1987


> From: gwyn at brl-smoke.ARPA (Doug Gwyn )
> Subject: Re: RMS comments to X3J11 (LONG)
> Date: 8 Jan 87 15:56:56 GMT
> 
> >2. A preprocessor directive that allows defining a macro so
> >that each time it is called it appends some text to the definition
> >of another macro.
> 
> I thought this could be done with the defined facilities.

Which defined facilities are those?  They aren't available in the
cpp here.  How does one write an ANSI macro X(a,b,C) that appends
"a" to macro A and "b" to macro "B and "a b" to macro C?

(Actually what would also be nice is a way of incrementing a symbol
from within a macro.  It would be useful for generating unique
labels and such things.)



More information about the Comp.lang.c mailing list