[SDL] Feature Query System (Was: Some multithreaded improvement to the event queue...)

Olof Bjarnason olof.bjarnason at gmail.com
Sun Sep 18 22:27:16 PDT 2005


Well, my '#define bool int' was more of a pun... guess you missed it :)

/Olof

On 9/18/05, Ricardo Cruz <rpmcruz at clix.pt> wrote:
> 
>  Well, the boolean type also exists in C since the C99 revision. Just do a
> "#include <stdbool.h>".
> 
>  Anyway, instead of your define, a more correct code would be something like:
> typedef enum { false, true } bool;
> 
> Cheers,
>  Ricardo
> 
> Em Sábado, 17 de Setembro de 2005 08:39, o Olof Bjarnason escreveu:
> > #define bool int
> >
> > Err.. sorry for the C++-ish API style :)
> >
> --
> A clash of doctrine is not a disaster -- it is an opportunity.
>




More information about the SDL mailing list