aboutsummaryrefslogtreecommitdiff
path: root/py/objtype.c
diff options
context:
space:
mode:
authorDamien George2014-05-24 23:03:12 +0100
committerDamien George2014-05-24 23:03:12 +0100
commitee3fd46f1383e984c968c4a82d634d7b0cea49b8 (patch)
tree76eb38f9015df5d003f646ce019745426365021c /py/objtype.c
parentd0ceb04b90ca7edd7e45b8eff1cdebdfa20a0cf8 (diff)
Rename configuration variables controling Python features.
Now of the form MICROPY_PY_*. See issue #35.
Diffstat (limited to 'py/objtype.c')
-rw-r--r--py/objtype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objtype.c b/py/objtype.c
index 1d4f90819..0561282b8 100644
--- a/py/objtype.c
+++ b/py/objtype.c
@@ -413,7 +413,7 @@ STATIC void instance_load_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
mp_obj_class_lookup(self, self->base.type, attr, 0, dest);
mp_obj_t member = dest[0];
if (member != MP_OBJ_NULL) {
-#if MICROPY_ENABLE_PROPERTY
+#if MICROPY_PY_PROPERTY
if (MP_OBJ_IS_TYPE(member, &mp_type_property)) {
// object member is a property
// delegate the store to the property
@@ -447,7 +447,7 @@ STATIC void instance_load_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
STATIC bool instance_store_attr(mp_obj_t self_in, qstr attr, mp_obj_t value) {
mp_obj_instance_t *self = self_in;
-#if MICROPY_ENABLE_PROPERTY
+#if MICROPY_PY_PROPERTY
// for property, we need to do a lookup first in the class dict
// this makes all stores slow... how to fix?
mp_obj_t member[2] = {MP_OBJ_NULL};