diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-24 11:16:24 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-24 11:16:24 +0000 |
| commit | 135d3c409c00210526afd0d649e5b709d8f29a7d (patch) | |
| tree | 4635f1b0c23acac2f8d8a872936739adf5c53bd6 /malloclab-handout/util | |
| parent | 3d6825e0c58fe82ebd835ce5ecae2a9756104ce4 (diff) | |
add debug macro for print_list
Diffstat (limited to 'malloclab-handout/util')
| -rw-r--r-- | malloclab-handout/util/mm-naive-free.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/malloclab-handout/util/mm-naive-free.h b/malloclab-handout/util/mm-naive-free.h index c618ca6..3aa06bd 100644 --- a/malloclab-handout/util/mm-naive-free.h +++ b/malloclab-handout/util/mm-naive-free.h @@ -79,6 +79,7 @@ void logger( std::format_string<Args...> fmt, Args&&... args ) void print_list() { +#ifdef OV4_VERBOSE logger("print_list: "); size_t p = (size_t)mem_heap_lo(); while (true) @@ -90,4 +91,5 @@ void print_list() p += get_size(*(size_t*)p); } loggerln(""); +#endif }
\ No newline at end of file |
