summaryrefslogtreecommitdiff
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-05-25 16:48:19 +1000
committerDamien George <damien.p.george@gmail.com>2018-06-08 11:48:25 +1000
commitdb5d8c97f1ee74bbd0d5b86991c6de33d0f985b6 (patch)
treee4172d49078aab4142c58f59795e9f23b8126aca /py/obj.h
parentb789c640f706ff27742d81435b90d16f43da91ef (diff)
py/obj.h: Introduce a "flags" entry in mp_obj_type_t.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/py/obj.h b/py/obj.h
index 8e4083920..a64cd0f69 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -455,8 +455,11 @@ struct _mp_obj_type_t {
// A type is an object so must start with this entry, which points to mp_type_type.
mp_obj_base_t base;
- // The name of this type.
- qstr name;
+ // Flags associated with this type.
+ uint16_t flags;
+
+ // The name of this type, a qstr.
+ uint16_t name;
// Corresponds to __repr__ and __str__ special methods.
mp_print_fun_t print;