diff options
author | Damien <damien.p.george@gmail.com> | 2013-10-16 16:12:52 +0100 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-10-16 16:12:52 +0100 |
commit | c226dca1f712914f63ead99fbf4f451aaba90d24 (patch) | |
tree | 98146d0f255c9bc56f3ee0f5cec5be92cf1b15c2 /py/runtime.h | |
parent | 152568bcb61e65b700ca2b963534f2632d080345 (diff) | |
download | micropython-c226dca1f712914f63ead99fbf4f451aaba90d24.tar.gz micropython-c226dca1f712914f63ead99fbf4f451aaba90d24.zip |
Support tuples and list comprehension, albeit crude.
Diffstat (limited to 'py/runtime.h')
-rw-r--r-- | py/runtime.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/runtime.h b/py/runtime.h index c36f8d8e7e..e9adbe1f0e 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -116,7 +116,9 @@ py_obj_t rt_call_function_n(py_obj_t fun, int n_args, const py_obj_t *args); py_obj_t rt_call_method_1(py_obj_t fun, py_obj_t self); py_obj_t rt_call_method_2(py_obj_t fun, py_obj_t self, py_obj_t arg); py_obj_t rt_call_method_n(int n_args, const py_obj_t *args); +py_obj_t rt_build_tuple(int n_args, py_obj_t *items); py_obj_t rt_build_list(int n_args, py_obj_t *items); +py_obj_t rt_list_append(py_obj_t list, py_obj_t arg); py_obj_t rt_build_map(int n_args); py_obj_t rt_store_map(py_obj_t map, py_obj_t key, py_obj_t value); py_obj_t rt_build_set(int n_args, py_obj_t *items); |