Skip to content

Commit db5d8c9

Browse files
committed
py/obj.h: Introduce a "flags" entry in mp_obj_type_t.
1 parent b789c64 commit db5d8c9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

py/obj.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,11 @@ struct _mp_obj_type_t {
455455
// A type is an object so must start with this entry, which points to mp_type_type.
456456
mp_obj_base_t base;
457457

458-
// The name of this type.
459-
qstr name;
458+
// Flags associated with this type.
459+
uint16_t flags;
460+
461+
// The name of this type, a qstr.
462+
uint16_t name;
460463

461464
// Corresponds to __repr__ and __str__ special methods.
462465
mp_print_fun_t print;

0 commit comments

Comments
 (0)