TITLE: Continuation of comments TITLE: rob@phavl.UUCP (Robt Ransbottom) // This is a comment with escaped end of lines \ in it's midst. Not intuitive, but seems legal \ to me. The ARM says little on preprocessing, \ so I assume // comments are handled at the \ same stage as /* comments, i.e. Standard C rules. \ \ #define EndOfComment "Was that parsed correctly? I need to fix my cpp." RESPONSE: steve@taumet.com (Steve Clamage), 25 Feb 93 Escaped newlines are supposed to result in concatenated source text lines before comments are recognized as comments. Therefore, your funny-looking comment is all one logical line. Further, it looks like the empty line before the #define also has an escaped newline, which means that the #define is in the same line as the comment and should not be processed. Some C++ compilers use a hacked-up old-style C preprocessor, and don't always get these details right. If the compiler gets it wrong, you should complain to the vendor. In the mean time, avoid constructs which depend on behavior which your compiler might not support.