diff options
| author | Damien George | 2020-09-11 23:00:03 +1000 |
|---|---|---|
| committer | Damien George | 2020-09-11 23:00:03 +1000 |
| commit | acdb0608b7622cc7af0bdbfc89b2696583c948ae (patch) | |
| tree | e487dcb46302ca2386ad569e58f08368338bb156 /ports/unix | |
| parent | 85f2b239d8ff8d29155c63799717e3f88b2f33f3 (diff) | |
py/parse: Pass in an mp_print_t to mp_parse_node_print.
So the output can be redirected if needed.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/unix')
| -rw-r--r-- | ports/unix/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/unix/main.c b/ports/unix/main.c index c38b7b0c2..0fe492a55 100644 --- a/ports/unix/main.c +++ b/ports/unix/main.c @@ -133,7 +133,7 @@ STATIC int execute_from_lexer(int source_kind, const void *source, mp_parse_inpu // allow to print the parse tree in the coverage build if (mp_verbose_flag >= 3) { printf("----------------\n"); - mp_parse_node_print(parse_tree.root, 0); + mp_parse_node_print(&mp_plat_print, parse_tree.root, 0); printf("----------------\n"); } #endif |
