aboutsummaryrefslogtreecommitdiff
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-01-30 00:15:26 +1100
committerDamien George <damien.p.george@gmail.com>2020-01-30 14:53:07 +1100
commitc3450effd4c3a402eeccf44a84a05ef4b36d69a0 (patch)
tree9767362c2c073ca9db749fd0be41b69f69ae039a /py/obj.h
parent96a4435be1279dcb7804850311e551f2b06d86bd (diff)
py/objtype: Make mp_obj_type_t.flags constants public, moved to obj.h.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index b052b9fc8..2bc72b586 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -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,