Skip to content

Commit 2813cb6

Browse files
committed
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...
1 parent d6c5d39 commit 2813cb6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

py/obj.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ mp_obj_t mp_obj_len_maybe(mp_obj_t o_in); /* may return MP_OBJ_NULL */
398398

399399
// bool
400400
// TODO make lower case when it has proven itself
401-
inline mp_obj_t MP_BOOL(machine_int_t x) { return x ? mp_const_true : mp_const_false; }
401+
static inline mp_obj_t MP_BOOL(machine_int_t x) { return x ? mp_const_true : mp_const_false; }
402402

403403
// cell
404404
mp_obj_t mp_obj_cell_get(mp_obj_t self_in);

py/qstr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ enum {
1212
#include "build/py/qstrdefs.generated.h"
1313
#undef Q
1414
MP_QSTR_number_of,
15-
} category_t;
15+
};
1616

1717
typedef machine_uint_t qstr;
1818

0 commit comments

Comments
 (0)