diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-12-27 05:00:08 +0200 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-12-27 05:01:21 +0200 |
| commit | 343266ea519927a7f1bc0a27f9c8af768d1125f7 (patch) | |
| tree | 8c57cf11e0e285de00c427478878ae8ab623dd87 /py/bc.h | |
| parent | c55a4d82cf03d22933028bd9db4031ef349fdc1f (diff) | |
showbc: Refactor to allow inline instruction printing.
Diffstat (limited to 'py/bc.h')
| -rw-r--r-- | py/bc.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -53,6 +53,8 @@ mp_vm_return_kind_t mp_execute_bytecode(mp_code_state *code_state, volatile mp_o 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_bytecode_print(const void *descr, mp_uint_t n_total_args, const byte *code, mp_uint_t len); void mp_bytecode_print2(const byte *code, mp_uint_t len); +const byte *mp_bytecode_print_str(const byte *ip); +#define mp_bytecode_print_inst(code) mp_bytecode_print2(code, 1) // Helper macros to access pointer with least significant bits holding flags #define MP_TAGPTR_PTR(x) ((void*)((mp_uint_t)(x) & ~((mp_uint_t)3))) |
