Re: pasting "." and "something" does not give a valid preprocessing token..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx, marc.eberhard@xxxxxxxxxxxxx, marc@xxxxxxxxxxx
email: m.a.eberhard@xxxxxxxxxxx, web: http://www.aston.ac.uk/~eberhama/


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux