diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-16 00:01:29 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-16 00:01:29 +0000 |
commit | 2e482cdb7b1e457053edcb8585414ecd1eba2cdc (patch) | |
tree | dd919156b1fb137a4981224ca847c5123c41f0be /py/obj.h | |
parent | 96056a62721cb4d81856311d9b808460a80b59d4 (diff) | |
download | micropython-2e482cdb7b1e457053edcb8585414ecd1eba2cdc.tar.gz micropython-2e482cdb7b1e457053edcb8585414ecd1eba2cdc.zip |
py: Implement *vargs support.
Addresses issue #295.
Diffstat (limited to 'py/obj.h')
-rw-r--r-- | py/obj.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -236,7 +236,7 @@ mp_obj_t mp_obj_new_exception_msg(const mp_obj_type_t *exc_type, const char *msg mp_obj_t mp_obj_new_exception_msg_varg(const mp_obj_type_t *exc_type, const char *fmt, ...); // counts args by number of % symbols in fmt, excluding %%; can only handle void* sizes (ie no float/double!) 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, mp_obj_t def_args, uint n_state, const byte *code); +mp_obj_t mp_obj_new_fun_bc(uint scope_flags, uint n_args, mp_obj_t def_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(mp_obj_t fun); mp_obj_t mp_obj_new_gen_instance(const byte *bytecode, uint n_state, int n_args, const mp_obj_t *args); |