diff options
author | Damien George <damien.p.george@gmail.com> | 2015-04-01 23:31:30 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-04-02 22:56:58 +0100 |
commit | 12a5e17afb6a59d1eb0e1ce0444d7e4891f6391b (patch) | |
tree | 9a78cc4a98534d492f07c6c57cf9fcaa7e194c14 /py/objfun.c | |
parent | dbc0191d5f1cf51bdf628800ae24a70392be673f (diff) | |
download | micropython-12a5e17afb6a59d1eb0e1ce0444d7e4891f6391b.tar.gz micropython-12a5e17afb6a59d1eb0e1ce0444d7e4891f6391b.zip |
py: Add finer configuration of static funcs when not in stackless mode.
Also rename call_args_t to mp_call_args_t.
Diffstat (limited to 'py/objfun.c')
-rw-r--r-- | py/objfun.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objfun.c b/py/objfun.c index 70b897b57d..25a835e9b5 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -142,6 +142,7 @@ STATIC void dump_args(const mp_obj_t *a, mp_uint_t sz) { // Set this to enable a simple stack overflow check. #define VM_DETECT_STACK_OVERFLOW (0) +#if MICROPY_STACKLESS mp_code_state *mp_obj_fun_bc_prepare_codestate(mp_obj_t self_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { MP_STACK_CHECK(); mp_obj_fun_bc_t *self = self_in; @@ -176,6 +177,7 @@ mp_code_state *mp_obj_fun_bc_prepare_codestate(mp_obj_t self_in, mp_uint_t n_arg return code_state; } +#endif STATIC mp_obj_t fun_bc_call(mp_obj_t self_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { MP_STACK_CHECK(); |