summaryrefslogtreecommitdiff
path: root/py/gc.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-03-09 13:50:21 +1100
committerDamien George <damien@micropython.org>2023-03-10 10:58:10 +1100
commitb3c8ab37ec86d19277e9d1dd10b5741ab93022ed (patch)
treeff7acfeb4f971ff6682538bf72d50c9610c203ca /py/gc.h
parentf450e94ba03a22cafc38d50f69e8af1c1599c401 (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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/gc.h b/py/gc.h
index bb4204b06..8431c0a6c 100644
--- a/py/gc.h
+++ b/py/gc.h
@@ -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