Page 1 of 1

Include guards

Posted: Thu Jun 12, 2008 2:26 am
by supertommy
Would you mind putting include guards in your header files, Scott? At least the chipmunk.h header would benefit from having

Code: Select all

#ifndef _CHIPMUNK_H_
#define _CHIPMUNK_H_
at the top of the file and an #endif at the bottom. It's becoming somewhat painful to have to make sure that that header file is included exactly once for any of my source files.

Re: Include guards

Posted: Mon Jun 30, 2008 11:36 pm
by Ihateregistering
I would like this too - I need to #include chipmunk.h in some of my header files. I would prefer not to have to edit chipmunk.h every time I upgrade.

Re: Include guards

Posted: Mon Jul 07, 2008 12:43 pm
by __fastcall
Do it yourself :)