Re: [Bf-committers] int vs enum use?

2013-07-07 Thread David Jeske
On Sun, Jul 7, 2013 at 3:53 PM, Brecht Van Lommel < brechtvanlom...@pandora.be> wrote: > One reason is that you can't do forward declarations of enums in > header files [in ISO C] like you can do with structs. I see my confusion. gcc has a non-standard extension to support forward declarations o

Re: [Bf-committers] int vs enum use?

2013-07-07 Thread Brecht Van Lommel
One reason is that you can't do forward declarations of enums in header files like you can do with structs. That means you have to include header files in header files, which is generally avoided whenever possible. I don't think there's a good reason #defines are used instead of enums to define th