py/objtype: Make mp_obj_type_t.flags constants public, moved to obj.h.

This commit is contained in:
Damien George
2020-01-30 00:15:26 +11:00
parent 96a4435be1
commit c3450effd4
2 changed files with 13 additions and 12 deletions

View File

@@ -444,6 +444,10 @@ typedef mp_obj_t (*mp_fun_var_t)(size_t n, const mp_obj_t *);
// this arg to mp_map_lookup().
typedef mp_obj_t (*mp_fun_kw_t)(size_t n, const mp_obj_t *, mp_map_t *);
// Flags for type behaviour (mp_obj_type_t.flags)
#define MP_TYPE_FLAG_IS_SUBCLASSED (0x0001)
#define MP_TYPE_FLAG_HAS_SPECIAL_ACCESSORS (0x0002)
typedef enum {
PRINT_STR = 0,
PRINT_REPR = 1,