summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-14 23:55:01 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-14 23:55:01 +0000
commit9daa78943e58602f74c89a2b5b1ed225f4ccf6cc (patch)
treea5ea774c04ce313d437654cf49b085732e480791 /py/obj.h
parent6c2401e935b38ca87fd8f52efbb614a428b6938c (diff)
downloadmicropython-9daa78943e58602f74c89a2b5b1ed225f4ccf6cc.tar.gz
micropython-9daa78943e58602f74c89a2b5b1ed225f4ccf6cc.zip
added enumerate()
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index dbf9efe20e..6a6f98d0cd 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -294,6 +294,9 @@ void mp_obj_list_get(mp_obj_t self_in, uint *len, mp_obj_t **items);
void mp_obj_list_store(mp_obj_t self_in, mp_obj_t index, mp_obj_t value);
mp_obj_t list_sort(mp_obj_t args, struct _mp_map_t *kwargs);
+// enumerate
+extern const mp_obj_type_t enumerate_type;
+
// dict
extern const mp_obj_type_t dict_type;
uint mp_obj_dict_len(mp_obj_t self_in);