RE: [GD-General] Redundant Include Guards
Brought to you by:
vexxed72
From: Grills, J. <jg...@so...> - 2002-12-16 17:25:51
|
I once wrote a perl script to implement Lakos' include guard techniques on all of our source, and it had no significant impact on our build times in MSVC 6. j Jeff Grills Technical Director Star Wars Galaxies Sony Online Entertainment -----Original Message----- From: Arjen Beij [mailto:arj...@ga...] Sent: Monday, December 16, 2002 3:03 AM To: gam...@li... Subject: RE: [GD-General] Redundant Include Guards Not sure about that. It does have "#pragma once" though, which "specifies that the file, in which the pragma resides, will be included (opened) only once by the compiler in a build." Arjen Beij | AI Programmer Lost Boys Games | Prins Hendrikkade 139 | 1011AS Amsterdam The Netherlands Tel: +31 (0)20 4272277 | Fax: +31 (0)20 4274040 | arj...@ga... www.games.lostboys.com > -----Original Message----- > From: gam...@li... > [mailto:gam...@li...]On Behalf Of > Dirk Ringe > Sent: Monday, December 16, 2002 09:27 > To: gam...@li... > Subject: RE: [GD-General] Redundant Include Guards > > > At least GCC is smart enough to prevent opening header files if they are > guarded by include guard defines and when they are already parsed. Whether > this applies to MSVC i do not know. > > Dirk |