O
Olе Streicher
Hi group,
In a program I want to compile, the preprocessor is used in an unusual
way: (some of the) #defines are protected with an underscore, then the C
preprocessor is called, and then the protection is removed.
The preprocessor is called on lines like:
---------8<----
_#define FOO \
BAR
---------8<----
which results (gcc 4.6.1) in
---------8<----
_#define FOO
BAR
---------8<----
Where is the backslash gone? Is this standard behaviour? And how can I
ensure that the backslash stays on its place?
Best regards
Ole
In a program I want to compile, the preprocessor is used in an unusual
way: (some of the) #defines are protected with an underscore, then the C
preprocessor is called, and then the protection is removed.
The preprocessor is called on lines like:
---------8<----
_#define FOO \
BAR
---------8<----
which results (gcc 4.6.1) in
---------8<----
_#define FOO
BAR
---------8<----
Where is the backslash gone? Is this standard behaviour? And how can I
ensure that the backslash stays on its place?
Best regards
Ole