diff options
| author | Damien George <damien@micropython.org> | 2023-03-09 13:50:21 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-03-10 10:58:10 +1100 |
| commit | b3c8ab37ec86d19277e9d1dd10b5741ab93022ed (patch) | |
| tree | ff7acfeb4f971ff6682538bf72d50c9610c203ca /py/gc.h | |
| parent | f450e94ba03a22cafc38d50f69e8af1c1599c401 (diff) | |
py/gc: Make gc_dump_info/gc_dump_alloc_table take a printer as argument.
So that callers can redirect the output if needed.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/gc.h')
| -rw-r--r-- | py/gc.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -28,7 +28,7 @@ #include <stdbool.h> #include <stddef.h> -#include "py/mpconfig.h" +#include "py/mpprint.h" void gc_init(void *start, void *end); @@ -72,7 +72,7 @@ typedef struct _gc_info_t { } gc_info_t; void gc_info(gc_info_t *info); -void gc_dump_info(void); -void gc_dump_alloc_table(void); +void gc_dump_info(const mp_print_t *print); +void gc_dump_alloc_table(const mp_print_t *print); #endif // MICROPY_INCLUDED_PY_GC_H |
