Re: [AD] new_api_branch news

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Eric Botcazou wrote:

What is "bool"? I thought that is C++ only?

It's C99 (see stdbool.h in your system directories).  It's a bit
controversial to use it, but I really hope we can use it.  I'm sick of
every library making up its own boolean type.

No, it's actually not C99.  Only _Bool is C99.  It's C++ only.

At the language level, yes. But stdbool.h is C99, which #defines the macro bool to _Bool.

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/