diff options
author | Damien George <damien.p.george@gmail.com> | 2015-11-27 12:50:54 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-11-29 14:25:04 +0000 |
commit | 9f6976b74e352d01bbfbb4b4d32465f9db5f3390 (patch) | |
tree | 4b502787fa702b3fab104145990d0a09d408af32 /py/bc.c | |
parent | 278f3592d40ac8826912b6587fe10ee0bc7c49a1 (diff) | |
download | micropython-9f6976b74e352d01bbfbb4b4d32465f9db5f3390.tar.gz micropython-9f6976b74e352d01bbfbb4b4d32465f9db5f3390.zip |
py: Make mp_setup_code_state take concrete pointer for func arg.
Diffstat (limited to 'py/bc.c')
-rw-r--r-- | py/bc.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -89,10 +89,9 @@ STATIC void dump_args(const mp_obj_t *a, mp_uint_t sz) { // - code_state->ip should contain the offset in bytes from the start of // the bytecode chunk to just after n_state and n_exc_stack // - code_state->n_state should be set to the state size (locals plus stack) -void mp_setup_code_state(mp_code_state *code_state, mp_obj_t self_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { +void mp_setup_code_state(mp_code_state *code_state, mp_obj_fun_bc_t *self, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { // This function is pretty complicated. It's main aim is to be efficient in speed and RAM // usage for the common case of positional only args. - mp_obj_fun_bc_t *self = self_in; mp_uint_t n_state = code_state->n_state; // ip comes in as an offset into bytecode, so turn it into a true pointer |