aboutsummaryrefslogtreecommitdiff
path: root/py/objtype.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/objtype.h')
-rw-r--r--py/objtype.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/objtype.h b/py/objtype.h
index 52419f3cd..1f4313084 100644
--- a/py/objtype.h
+++ b/py/objtype.h
@@ -37,6 +37,11 @@ typedef struct _mp_obj_instance_t {
// TODO maybe cache __getattr__ and __setattr__ for efficient lookup of them
} mp_obj_instance_t;
+#if MICROPY_CPYTHON_COMPAT
+// this is needed for object.__new__
+mp_obj_instance_t *mp_obj_new_instance(const mp_obj_type_t *cls, const mp_obj_type_t **native_base);
+#endif
+
// this needs to be exposed for MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE to work
void mp_obj_instance_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest);