This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: pasting "." and "something" does not give a valid preprocessing token..
- From: Marc Eberhard <m dot a dot eberhard at aston dot ac dot uk>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 19 Aug 2003 10:12:40 +0100
- Subject: Re: pasting "." and "something" does not give a valid preprocessing token..
- Organization: Aston University, UK
- References: <20030819081900.GA4984@nepomuk.aston.ac.uk> <3F41E146.5000307@codesourcery.com>
Dear Nathan!
On Tue, Aug 19, 2003 at 09:35:18AM +0100, Nathan Sidwell wrote:
> Marc Eberhard wrote:
> > this-> ## v
> > mynamespace:: ## v
> >
> >Is there a way to convince the preprocessor, that I know, what I'm doing
> >and to accept the result as a vaild token (what it is in C++)? This is
> >with gcc (GCC) 3.3.1 20030626 (Debian prerelease).
> they are not valid single tokens. The preprocessor is correct. Why do you
> think you need a ## at all?
Ahhh, that's the solution. :-) I somehow thought, that I would have to use
## to combine the two and 2.95 happyly did the right thing with it. Only
when upgrading to 3.3 I suddenly ran into this problem. But you're perfectly
right... simply leaving the ## out solves the problem! Many thanks, I would
never have guessed, that the solution is that easy!!!
Thanks,
Marc
_______________________________________________________________________________
email: marc@greenie.net, marc.eberhard@alumni.tum.de, marc@affs.org.uk
email: m.a.eberhard@aston.ac.uk, web: http://www.aston.ac.uk/~eberhama/