Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!clyde!watmath!rbutterworth From: rbutterworth@watmath.UUCP (Ray Butterworth) Newsgroups: comp.lang.c Subject: ANSI C preprocessor Message-ID: <4430@watmath.UUCP> Date: Thu, 15-Jan-87 10:28:46 EST Article-I.D.: watmath.4430 Posted: Thu Jan 15 10:28:46 1987 Date-Received: Fri, 16-Jan-87 03:33:39 EST Distribution: comp Organization: U of Waterloo, Ontario Lines: 17 > From: gwyn@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.)