summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-13 18:59:45 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-13 18:59:45 +0100
commit777b0f32f459dbf5aac051eab3d91abbc6505501 (patch)
tree30bac9053478173fa828758d1d301ea3018f29e3 /py/obj.h
parent4417478d0fc39b69fda058e93730b3dc3fdb1ec9 (diff)
downloadmicropython-777b0f32f459dbf5aac051eab3d91abbc6505501.tar.gz
micropython-777b0f32f459dbf5aac051eab3d91abbc6505501.zip
py: Add property object, with basic functionality.
Enabled by MICROPY_ENABLE_PROPERTY.
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 6e5796668d..9efec60de0 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -283,6 +283,7 @@ extern const mp_obj_type_t mp_type_fun_bc;
extern const mp_obj_type_t mp_type_module;
extern const mp_obj_type_t mp_type_staticmethod;
extern const mp_obj_type_t mp_type_classmethod;
+extern const mp_obj_type_t mp_type_property;
// Exceptions
extern const mp_obj_type_t mp_type_BaseException;
@@ -518,6 +519,9 @@ typedef struct _mp_obj_static_class_method_t {
mp_obj_t fun;
} mp_obj_static_class_method_t;
+// property
+const mp_obj_t *mp_obj_property_get(mp_obj_t self_in);
+
// sequence helpers
void mp_seq_multiply(const void *items, uint item_sz, uint len, uint times, void *dest);
bool m_seq_get_fast_slice_indexes(machine_uint_t len, mp_obj_t slice, machine_uint_t *begin, machine_uint_t *end);