News for hackers. Stuff that matters.
Re:Apple's Module proposal to replace headers for C-based la... by lttlrck on Monday November 26, 2012 @04:57PM (#4834261)
For GCC this is highly optimized:

"The preprocessor notices such header files, so that if the header file appears in a subsequent #include directive and FOO is defined, then it is ignored and it doesn't preprocess or even re-open the file a second time. This is referred to as the multiple include optimization."

http://gcc.gnu.org/onlinedocs/cppinternals/Guard-Macros.html

Re:Apple's Module proposal to replace headers for C-based la... by pjmlp on Tuesday November 27, 2012 @04:24AM (#4836367)
Except that the contents of foo.h might be different depending on where it is being included.