[DGD] Comment/Preprocessor Bug

Blain blain20 at gmail.com
Wed Apr 24 05:51:45 CEST 2013


I found a bug with the precprocessor and C++-style comments near them:

BREAKS: #ifdef DEBUG_WRAP } //comment #endif /* DEBUG_WRAP */
(Note: The above just causes the #endif to disappear, so the compiler runs
into EOF. I can place another #endif after to fix it.) WORKS: #ifdef
DEBUG_WRAP } /* comment */ #endif /* DEBUG_WRAP */ === BREAKS: #define FOO
BLAH //comment WORKS: #define FOO BLAH /* comment */



More information about the DGD mailing list