Re: [AD] escaping newlines and cpp reentrance

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In article <DOEPJBFJKJJJOCHIMOPIOEGHDHAA.vincent@xxxxxxxxxx>, Vincent
Penquerc'h <vincent@xxxxxxxxxx> writes
>This is an excerpt from the C++ draft. It is not C, but the odds that C
>behaves differently at preprocessor level are thin, I'd say. Note the last
>point.

I can't find anything about differences between the preprocessor used in
C or C++; looking closely at the options that gcc passes its
preprocessor for C vs C++ code would probably settle that question
(although gcc 3 will ship with an integrated preprocessor).

As to doing clever things with preprocessor macros, the FreeType people
tried implementing something like this and got nothing but problems from
broken or misinterpreted compiler implementations. So I wouldn't
recommend it. Of course, if you *know* which compiler you are targetting
(in this case, it would be MSVC, Borland, MingW32, etc.), then you can
actually test out what you want to do.

Bye for now,
- -- 
Laurence Withers, lwithers@xxxxxxxxxx
                http://www.lwithers.demon.co.uk/

-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1

iQA/AwUBOyKcNGbrT6QxxsGNEQKb0QCfX8YVLyboceEuS8qaR+6kolP0x3YAnjci
GGEQ/Wpmi+W55Yc0m4JQQQj9
=QDtW
-----END PGP SIGNATURE-----



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/