We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5e0970 commit 88a8043Copy full SHA for 88a8043
1 file changed
py/malloc.c
@@ -39,6 +39,9 @@
39
#endif
40
41
#if MICROPY_MEM_STATS
42
+#if !MICROPY_MALLOC_USES_ALLOCATED_SIZE
43
+#error MICROPY_MEM_STATS requires MICROPY_MALLOC_USES_ALLOCATED_SIZE
44
+#endif
45
#define UPDATE_PEAK() { if (MP_STATE_MEM(current_bytes_allocated) > MP_STATE_MEM(peak_bytes_allocated)) MP_STATE_MEM(peak_bytes_allocated) = MP_STATE_MEM(current_bytes_allocated); }
46
47
0 commit comments