summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-05-05 22:18:07 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-05-05 22:18:07 +0300
commit76677270218fb5732296e4fe1a0acbe05c8f818c (patch)
tree8a3488604b72791f142d034f317acdcfebd3c141 /py/obj.h
parente04aa96b4d5111737aba598f678e27793fe0cd01 (diff)
downloadmicropython-76677270218fb5732296e4fe1a0acbe05c8f818c.tar.gz
micropython-76677270218fb5732296e4fe1a0acbe05c8f818c.zip
objsingleton: New home for Ellipsis and NotImplemented.
Having NotImplemented as MP_OBJ_SENTINEL turned out to be problematic (it needs to be checked for in a lot of places, otherwise it'll crash as would pass MP_OBJ_IS_OBJ()), so made a proper singleton value like Ellipsis, both of them sharing the same type.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/obj.h b/py/obj.h
index 11c0198bb9..c67c04a1e7 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -449,7 +449,8 @@ extern const struct _mp_obj_bool_t mp_const_false_obj;
extern const struct _mp_obj_bool_t mp_const_true_obj;
extern const struct _mp_obj_str_t mp_const_empty_bytes_obj;
extern const struct _mp_obj_tuple_t mp_const_empty_tuple_obj;
-extern const struct _mp_obj_ellipsis_t mp_const_ellipsis_obj;
+extern const struct _mp_obj_singleton_t mp_const_ellipsis_obj;
+extern const struct _mp_obj_singleton_t mp_const_notimplemented_obj;
extern const struct _mp_obj_exception_t mp_const_MemoryError_obj;
extern const struct _mp_obj_exception_t mp_const_GeneratorExit_obj;