Revert MP_BOOL, etc. and use <stdbool.h> instead
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
typedef struct _mp_obj_bool_t {
|
||||
mp_obj_base_t base;
|
||||
MP_BOOL value;
|
||||
bool value;
|
||||
} mp_obj_bool_t;
|
||||
|
||||
static void bool_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in) {
|
||||
@@ -44,8 +44,8 @@ const mp_obj_type_t bool_type = {
|
||||
.methods = NULL,
|
||||
};
|
||||
|
||||
static const mp_obj_bool_t false_obj = {{&bool_type}, MP_FALSE};
|
||||
static const mp_obj_bool_t true_obj = {{&bool_type}, MP_TRUE};
|
||||
static const mp_obj_bool_t false_obj = {{&bool_type}, false};
|
||||
static const mp_obj_bool_t true_obj = {{&bool_type}, true};
|
||||
|
||||
const mp_obj_t mp_const_false = (mp_obj_t)&false_obj;
|
||||
const mp_obj_t mp_const_true = (mp_obj_t)&true_obj;
|
||||
|
||||
Reference in New Issue
Block a user