diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-21 19:42:43 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-21 19:42:43 +0100 |
commit | 6ac5dced2441bf63dbc65acbd7e33fb71d1d3ede (patch) | |
tree | fa0c99f00806dda3e9bf469245bb0b3870c4a101 /py/runtime.c | |
parent | 6d197740cf7067c65f40574f7cf0707480bbf461 (diff) | |
download | micropython-6ac5dced2441bf63dbc65acbd7e33fb71d1d3ede.tar.gz micropython-6ac5dced2441bf63dbc65acbd7e33fb71d1d3ede.zip |
py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL.
See issue #608 for justification.
Diffstat (limited to 'py/runtime.c')
-rw-r--r-- | py/runtime.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/runtime.c b/py/runtime.c index 7c89ec4e2e..ea75280ce4 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -200,7 +200,7 @@ mp_obj_t mp_unary_op(int op, mp_obj_t arg) { mp_obj_type_t *type = mp_obj_get_type(arg); if (type->unary_op != NULL) { mp_obj_t result = type->unary_op(op, arg); - if (result != MP_OBJ_NOT_SUPPORTED) { + if (result != MP_OBJ_NULL) { return result; } } @@ -439,7 +439,7 @@ mp_obj_t mp_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs) { mp_obj_type_t *type = mp_obj_get_type(rhs); if (type->binary_op != NULL) { mp_obj_t res = type->binary_op(op, rhs, lhs); - if (res != MP_OBJ_NOT_SUPPORTED) { + if (res != MP_OBJ_NULL) { return res; } } @@ -467,7 +467,7 @@ generic_binary_op: type = mp_obj_get_type(lhs); if (type->binary_op != NULL) { mp_obj_t result = type->binary_op(op, lhs, rhs); - if (result != MP_OBJ_NOT_SUPPORTED) { + if (result != MP_OBJ_NULL) { return result; } } |