[gambit-list] tell ___BOOL to be bool?
Marc Feeley
feeley at iro.umontreal.ca
Wed Feb 1 09:51:14 EST 2012
On 2012-02-01, at 12:19 AM, REPLeffect wrote:
> Would it be possible to get a configure option that will allow ___BOOL
> to be defined as bool instead of int? I understand at least some of
> the reasons behind defining it as int for compatibility with some
> compilers. It would just be nice to be able to chose to have it be
> bool instead.
>
> Perhaps there are ramifications which I have not considered. But it
> makes it nice for interfacing with my C++ code to have ___BOOL
> actually be bool (unless, of course, unconsidered ramifications would
> have detrimental effects on me -- in which case, please feel free to
> enlighten me) :-D
I have added to the configure script an automatic detection of support for the bool type. The ___BOOL macro will be defined in gambit.h accordingly. If you want to override the default, you can now supply the definition of the ___BOOL macro on the command-line (e.g. -D___BOOL=int).
Marc
More information about the Gambit-list
mailing list