aboutsummaryrefslogtreecommitdiff
path: root/py/emitglue.c
diff options
context:
space:
mode:
authorDamien George2020-09-11 17:22:28 +1000
committerDamien George2020-09-11 17:22:28 +1000
commit85f2b239d8ff8d29155c63799717e3f88b2f33f3 (patch)
treed1aabcdc58a741a98bfaaad048d208334a628302 /py/emitglue.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/emitglue.c')
-rw-r--r--py/emitglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitglue.c b/py/emitglue.c
index 98320c426..0ef708a3f 100644
--- a/py/emitglue.c
+++ b/py/emitglue.c
@@ -92,7 +92,7 @@ void mp_emit_glue_assign_bytecode(mp_raw_code_t *rc, const byte *code,
#endif
#if MICROPY_DEBUG_PRINTERS
if (mp_verbose_flag >= 2) {
- mp_bytecode_print(rc, code, len, const_table);
+ mp_bytecode_print(&mp_plat_print, rc, code, len, const_table);
}
#endif
}