Re: how to leave currently undefined directives

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

 



>What you 
> could do with it, is "precompile" each header file, not in the sense currently 

> used, but in such a way that you could then for each #include "foobar.h" line 
>in 
>
> a C/C++ source file, include the "precompiled" header instead, and the result 
>of 
>
> the compilation of the C/C++ source would be the same.  

>What would be the goal?  

The goal is as stated above (if I am not understanding your meaning of "goal", 
please correct me)

>And how would you handle

#ifdef FOO
#include "foo.h"
#endif


As specified in the post and illustrated by my example - 

if FOO is defined, include the contents of foo.h (after recursively processing 
it, just like normally done)

if FOO is not defined, leave the above lines as they are

Am I not understanding something obvious about your question?  

Thank you, 
Mark



[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