[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
The g++ preprocessor: Include Guards
From: |
gutmant |
Subject: |
The g++ preprocessor: Include Guards |
Date: |
Wed, 20 Jun 2007 10:29:34 -0000 |
User-agent: |
G2/1.0 |
Say you have a file, a.h with an include guard.
If you include it twice and look at the preprocessed output, you see
there's no sign for the second inclusion.
However, if you include it twice - once from a relative path, and once
from an absolute one - you see that the second inclusion indeed occurs
(enters the file and leaves immediately due to the include guard).
Why does this happen(I have my speculations, but I want some
reassurance...), and is there any way to make it always act like in
the latter case?
Thanks,
- Tali
- The g++ preprocessor: Include Guards,
gutmant <=
- Re: The g++ preprocessor: Include Guards, Bernd Strieder, 2007/06/20
- Re: The g++ preprocessor: Include Guards, gutmant, 2007/06/20
- Re: The g++ preprocessor: Include Guards, Bernd Strieder, 2007/06/20
- Re: The g++ preprocessor: Include Guards, gutmant, 2007/06/20
- Re: The g++ preprocessor: Include Guards, Bernd Strieder, 2007/06/20
- Re: The g++ preprocessor: Include Guards, gutmant, 2007/06/20
- Re: The g++ preprocessor: Include Guards, Bernd Strieder, 2007/06/21
- Re: The g++ preprocessor: Include Guards, gutmant, 2007/06/21
- Re: The g++ preprocessor: Include Guards, Bernd Strieder, 2007/06/21
- Re: The g++ preprocessor: Include Guards, gutmant, 2007/06/21