summaryrefslogtreecommitdiffstatshomepage
path: root/py/bc.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-11-27 12:50:54 +0000
committerDamien George <damien.p.george@gmail.com>2015-11-29 14:25:04 +0000
commit9f6976b74e352d01bbfbb4b4d32465f9db5f3390 (patch)
tree4b502787fa702b3fab104145990d0a09d408af32 /py/bc.h
parent278f3592d40ac8826912b6587fe10ee0bc7c49a1 (diff)
downloadmicropython-9f6976b74e352d01bbfbb4b4d32465f9db5f3390.tar.gz
micropython-9f6976b74e352d01bbfbb4b4d32465f9db5f3390.zip
py: Make mp_setup_code_state take concrete pointer for func arg.
Diffstat (limited to 'py/bc.h')
-rw-r--r--py/bc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/bc.h b/py/bc.h
index 0332a70074..14f5034f88 100644
--- a/py/bc.h
+++ b/py/bc.h
@@ -91,7 +91,8 @@ mp_uint_t mp_decode_uint(const byte **ptr);
mp_vm_return_kind_t mp_execute_bytecode(mp_code_state *code_state, volatile mp_obj_t inject_exc);
mp_code_state *mp_obj_fun_bc_prepare_codestate(mp_obj_t func, 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_t self_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args);
+struct _mp_obj_fun_bc_t;
+void mp_setup_code_state(mp_code_state *code_state, struct _mp_obj_fun_bc_t *self, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args);
void mp_bytecode_print(const void *descr, const byte *code, mp_uint_t len, const mp_uint_t *const_table);
void mp_bytecode_print2(const byte *code, mp_uint_t len);
const byte *mp_bytecode_print_str(const byte *ip);