This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Preprocessor Problem?
On Sat, May 27, 2000 at 11:23:33PM +0200, Martin v. Loewis wrote:
> > I am attempting to port some c++ code that uses the following construct:
> >
> > #define whatever(x) \
> > class _whatever_x { \
> > void something() {} \
> > }
>
> > For some reason, it appears that gcc does not accept backslash
> > escaped newlines in macro definitions?!?!?!
>
> Sure it does. There is a chance that a Carriage Return character
> follows the backslash, so there is whitespace after the backslash,
> before the newline character.
... in which case a development snapshot will work as expected.
zw