diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-13 18:59:45 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-13 18:59:45 +0100 |
commit | 777b0f32f459dbf5aac051eab3d91abbc6505501 (patch) | |
tree | 30bac9053478173fa828758d1d301ea3018f29e3 /py/obj.h | |
parent | 4417478d0fc39b69fda058e93730b3dc3fdb1ec9 (diff) | |
download | micropython-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |