diff options
author | Damien George <damien@micropython.org> | 2020-09-11 17:22:28 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-09-11 17:22:28 +1000 |
commit | 85f2b239d8ff8d29155c63799717e3f88b2f33f3 (patch) | |
tree | d1aabcdc58a741a98bfaaad048d208334a628302 /py/vm.c | |
parent | 50efce81740901fee6f5191db36a48ada13ef6df (diff) |
py/showbc: Pass in an mp_print_t struct to all bytecode-print functions.
So the output can be redirected if needed.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/vm.c')
-rw-r--r-- | py/vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -39,7 +39,7 @@ // *FORMAT-OFF* #if 0 -#define TRACE(ip) printf("sp=%d ", (int)(sp - &code_state->state[0] + 1)); mp_bytecode_print2(ip, 1, code_state->fun_bc->const_table); +#define TRACE(ip) printf("sp=%d ", (int)(sp - &code_state->state[0] + 1)); mp_bytecode_print2(&mp_plat_print, ip, 1, code_state->fun_bc->const_table); #else #define TRACE(ip) #endif |