667
edits
Changes
→Examining IFirstXpcom.h
=== Use of header guards ===
Header guards (see [http://en.wikipedia.org/wiki/Include_guard Include Guards]) are a portable technique for ensuring that includes or defines are only done once, for example, that nsISupports. h only be included once: #ifndef __gen_nsISupports_h__ #include "nsISupports.h" #endif Another way of doing this, especially with the Microsoft compiler, is to use
#pragma once