py: Add 'static' to inline function MP_BOOL; remove category_t.
Small fixes to get it compiling with ARMCC. I have no idea why category_t was in the enum definition for qstrs...
This commit is contained in:
parent
d6c5d398fe
commit
2813cb6043
2
py/obj.h
2
py/obj.h
|
@ -398,7 +398,7 @@ mp_obj_t mp_obj_len_maybe(mp_obj_t o_in); /* may return MP_OBJ_NULL */
|
||||||
|
|
||||||
// bool
|
// bool
|
||||||
// TODO make lower case when it has proven itself
|
// TODO make lower case when it has proven itself
|
||||||
inline mp_obj_t MP_BOOL(machine_int_t x) { return x ? mp_const_true : mp_const_false; }
|
static inline mp_obj_t MP_BOOL(machine_int_t x) { return x ? mp_const_true : mp_const_false; }
|
||||||
|
|
||||||
// cell
|
// cell
|
||||||
mp_obj_t mp_obj_cell_get(mp_obj_t self_in);
|
mp_obj_t mp_obj_cell_get(mp_obj_t self_in);
|
||||||
|
|
Loading…
Reference in New Issue