always use unsigned int as mrb_bool even in C++

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-04-29 09:23:43 +09:00
parent 22469f3be1
commit 8890a992a6
3 changed files with 3 additions and 11 deletions
-10
View File
@@ -132,18 +132,8 @@ typedef short mrb_sym;
# define PRIo64 "I64o"
# define PRIx64 "I64x"
# define PRIX64 "I64X"
# ifdef __cplusplus
typedef bool mrb_bool;
# else
typedef unsigned int mrb_bool;
# endif
#else
# include <inttypes.h>
# ifdef __cplusplus
typedef bool mrb_bool;
# else
typedef _Bool mrb_bool;
# endif
#endif
#ifdef ENABLE_STDIO
+2
View File
@@ -7,6 +7,8 @@
#ifndef MRUBY_VALUE_H
#define MRUBY_VALUE_H
typedef unsigned int mrb_bool;
#ifndef MRB_NAN_BOXING
enum mrb_vtype {