diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-03-30 17:35:53 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-03-30 17:47:16 +0300 |
commit | 55ca075cab5423df5a2a5893248a504cedcb16a8 (patch) | |
tree | 736a092776e41d9928ce27224ae7ea1faf916bd9 /py/objtuple.c | |
parent | 48bdb21332079307be080cc620a1084c778d083b (diff) | |
download | micropython-55ca075cab5423df5a2a5893248a504cedcb16a8.tar.gz micropython-55ca075cab5423df5a2a5893248a504cedcb16a8.zip |
vm: Implement CALL_FUNCTION_VAR opcode (foo(*(1, 2, 3))).
Diffstat (limited to 'py/objtuple.c')
-rw-r--r-- | py/objtuple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objtuple.c b/py/objtuple.c index 6186640604..7f14509029 100644 --- a/py/objtuple.c +++ b/py/objtuple.c @@ -30,7 +30,7 @@ void tuple_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_o print(env, ")"); } -STATIC mp_obj_t tuple_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args) { +mp_obj_t mp_obj_tuple_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args) { // TODO check n_kw == 0 switch (n_args) { @@ -175,7 +175,7 @@ const mp_obj_type_t mp_type_tuple = { { &mp_type_type }, .name = MP_QSTR_tuple, .print = tuple_print, - .make_new = tuple_make_new, + .make_new = mp_obj_tuple_make_new, .unary_op = tuple_unary_op, .binary_op = tuple_binary_op, .getiter = tuple_getiter, |