Hello,

 [EMAIL PROTECTED] wrote:

> On Jun 20, 2:28 pm, Bernd Strieder <[EMAIL PROTECTED]>
> wrote:
>> Or see the section "Once-Only Headers" in the docs of cpp, the C
>> preprocessor.
>>
>> I think you can easily break the employed heuristics to reach your
>> goal.

> 
> Thank you Bernd!
> I figured as much. I still don't understand how I can make the
> preprocessor NOT to employ the optimization.
> I agree it is indeed and important one for most practical needs, but
> as the moment I need the information that is withheld from me...
> Thank you very much again,
>  - Tali

According to the docs the optimization is used, if the whole header file
besides comments is contained within #ifndef...#endif, which is a
really simple heuristic to implement: just test, whether the first
non-comment thing is #ifndef. So put something before, some #define,
some #include or whatever, and the optimization should be turned off
for the path name the header file is read from.

Bernd Strieder


_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to