Include guards

Discuss any Chipmunk bugs here.
Post Reply
supertommy
Posts: 56
Joined: Tue Sep 11, 2007 2:30 pm
Contact:

Include guards

Post 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.
Ihateregistering
Posts: 2
Joined: Tue Jun 24, 2008 9:54 am
Contact:

Re: Include guards

Post 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.
__fastcall
Posts: 4
Joined: Thu May 29, 2008 8:12 pm
Contact:

Re: Include guards

Post by __fastcall »

Do it yourself :)
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests