summaryrefslogtreecommitdiff
path: root/py/vm.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2020-09-11 17:22:28 +1000
committerDamien George <damien@micropython.org>2020-09-11 17:22:28 +1000
commit85f2b239d8ff8d29155c63799717e3f88b2f33f3 (patch)
treed1aabcdc58a741a98bfaaad048d208334a628302 /py/vm.c
parent50efce81740901fee6f5191db36a48ada13ef6df (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/vm.c b/py/vm.c
index f30aed8ff..393a2bbbd 100644
--- a/py/vm.c
+++ b/py/vm.c
@@ -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