summaryrefslogtreecommitdiff
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2013-12-30 22:32:17 +0000
committerDamien George <damien.p.george@gmail.com>2013-12-30 22:32:17 +0000
commit6baf76e28b17055fc6e5a6c9560e756d32eaad5d (patch)
treef4245858b6755d6731a7ec6c9f0a6fc49901eb5b /py/obj.h
parent8cc96a35e532ef999e5a3739deeb44f51a80744b (diff)
py: make closures work.
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 1a7b91aaa..7f2f2da20 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -120,6 +120,7 @@ typedef struct _mp_map_t mp_map_t;
mp_obj_t mp_obj_new_none(void);
mp_obj_t mp_obj_new_bool(bool value);
+mp_obj_t mp_obj_new_cell(mp_obj_t obj);
mp_obj_t mp_obj_new_int(machine_int_t value);
mp_obj_t mp_obj_new_str(qstr qstr);
#if MICROPY_ENABLE_FLOAT
@@ -134,7 +135,7 @@ mp_obj_t mp_obj_new_range(int start, int stop, int step);
mp_obj_t mp_obj_new_range_iterator(int cur, int stop, int step);
mp_obj_t mp_obj_new_fun_bc(int n_args, uint n_state, const byte *code);
mp_obj_t mp_obj_new_fun_asm(uint n_args, void *fun);
-mp_obj_t mp_obj_new_gen_wrap(uint n_locals, uint n_cells, uint n_stack, mp_obj_t fun);
+mp_obj_t mp_obj_new_gen_wrap(uint n_locals, uint n_stack, mp_obj_t fun);
mp_obj_t mp_obj_new_gen_instance(mp_obj_t state, const byte *ip, mp_obj_t *sp);
mp_obj_t mp_obj_new_closure(mp_obj_t fun, mp_obj_t closure_tuple);
mp_obj_t mp_obj_new_tuple(uint n, mp_obj_t *items);