[SDL] SDL_bool
Sebastian Beschke
sebastian.beschke at student.uni-tuebingen.de
Tue Jul 11 10:01:19 PDT 2006
Roman Kyrylych schrieb:
> Maybe for better C++ interface it could use something like
>
> #ifdef __cplusplus
> typedef SDL_bool bool;
> typedef SDL_FALSE false;
> typedef SDL_TRUE true;
> #else
> typedef enum SDL_bool {
> SDL_FALSE = 0,
> SDL_TRUE = 1
> } SDL_bool;
> #endif
>
I fail to see the whole point of redefining SDL_bool. It works
perfectly, doesn't it? As opposed to, when you change the define in the
header file, you would also need to provide SDL binaries that use bool
instead of SDL_bool. Seems a bit messy, and I don't think it would make
that many C++ programmers that much happier that it would be worth it.
-Sebastian
More information about the SDL
mailing list