summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.h
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-15 22:25:17 +0100
committerDamien <damien.p.george@gmail.com>2013-10-15 22:25:17 +0100
commitce89a21ea49e51274d016d9601c462312664271e (patch)
treed9ad69657b6ad313c988ce201a42e97d5cd38a39 /py/runtime.h
parent5dd455d06dd3cdda7daf496822776b0c8319f02b (diff)
downloadmicropython-ce89a21ea49e51274d016d9601c462312664271e.tar.gz
micropython-ce89a21ea49e51274d016d9601c462312664271e.zip
Implement basic exception framework, and simple for loop.
Diffstat (limited to 'py/runtime.h')
-rw-r--r--py/runtime.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/runtime.h b/py/runtime.h
index 2823ba187d..c36f8d8e7e 100644
--- a/py/runtime.h
+++ b/py/runtime.h
@@ -82,6 +82,7 @@ typedef py_obj_t (*py_fun_t)();
extern py_obj_t py_const_none;
extern py_obj_t py_const_false;
extern py_obj_t py_const_true;
+extern py_obj_t py_const_stop_iteration; // special object indicating end of iteration (not StopIteration exception!)
void rt_init();
void rt_deinit();
@@ -123,3 +124,5 @@ py_obj_t rt_load_attr(py_obj_t base, qstr attr);
void rt_load_method(py_obj_t base, qstr attr, py_obj_t *dest);
void rt_store_attr(py_obj_t base, qstr attr, py_obj_t val);
void rt_store_subscr(py_obj_t base, py_obj_t index, py_obj_t val);
+py_obj_t rt_getiter(py_obj_t o);
+py_obj_t rt_iternext(py_obj_t o);