aboutsummaryrefslogtreecommitdiff
path: root/py/gc.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-08-02 14:17:24 +1000
committerDamien George <damien.p.george@gmail.com>2018-08-02 14:17:24 +1000
commitb630dfcc1dc027bd049b4af9d25180f82c4051d9 (patch)
tree30b3d17370dc50e85597dc7f9b4858c9ceb09ab8 /py/gc.c
parentda2d2b6d884201f2cbb23f74c6c5557e30fb1f14 (diff)
py: Fix compiling with debug enabled and make more use of DEBUG_printf.
DEBUG_printf and MICROPY_DEBUG_PRINTER is now used instead of normal printf, and a fault is fixed in mp_obj_class_lookup with debugging enabled; see issue #3999. Debugging can now be enabled on all ports including when nan-boxing is used.
Diffstat (limited to 'py/gc.c')
-rw-r--r--py/gc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/gc.c b/py/gc.c
index 0fc43ef49..4f5793bf5 100644
--- a/py/gc.c
+++ b/py/gc.c
@@ -910,7 +910,8 @@ void gc_dump_alloc_table(void) {
GC_EXIT();
}
-#if DEBUG_PRINT
+#if 0
+// For testing the GC functions
void gc_test(void) {
mp_uint_t len = 500;
mp_uint_t *heap = malloc(len);