diff options
author | Damien <damien.p.george@gmail.com> | 2013-10-15 22:25:17 +0100 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-10-15 22:25:17 +0100 |
commit | ce89a21ea49e51274d016d9601c462312664271e (patch) | |
tree | d9ad69657b6ad313c988ce201a42e97d5cd38a39 /py/runtime.h | |
parent | 5dd455d06dd3cdda7daf496822776b0c8319f02b (diff) | |
download | micropython-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.h | 3 |
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); |