Re: Single line conditional compiles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Gerrit,

> I understand why it does not work - I am looking for a solution, not an
explanation :)

Well, that's good, because you saved me time explaining.  :-)

One solution is to run the preprocessor twice.

The first time it does all the normal preprocessor things (pulling in the
#include, expanding macros, yada yada yada), including embedding those
now-invalid comments into the post-preprocessed output.

The second time removes those introduced comments.

Voila!

--Eljay



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux