[SDL] SDL 1.3 sneak peek (July 2006)
askok at dnainternet.net
askok at dnainternet.net
Tue Jun 27 23:35:26 PDT 2006
How about typedeffing "enum_int" or something, that would
show in the function prototypes, that things like "access"
are really enumerated types, not "any number".
I've used this in LuaX, and even though it does not tell
_which_ enumerated type the parameter is, it is still a
step towards clarity (imho).
- asko
On Tue, 27 Jun 2006 18:00:38 -0700
Sam Lantinga <slouken at devolution.com> wrote:
>> Would it be possible to use the "enum type" where
>>applicable?
>
> I actually explicitly don't do this so that compilers
>that use different
> sizes for enums will produce binary compatible code.
> Microsoft's headers
> use a sneaky trick that assumes the size of an int to
>make their enums int
> sized on all compilers.
More information about the SDL
mailing list