Skip to content
Snippets Groups Projects
Commit bc04dc27 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

py/gc: Make (byte)array type dumping conditional on these types being enabled.

parent 3d7f3f00
No related branches found
No related tags found
No related merge requests found
......@@ -735,7 +735,12 @@ void gc_dump_alloc_table(void) {
else if (*ptr == &mp_type_list) { c = 'L'; }
else if (*ptr == &mp_type_dict) { c = 'D'; }
else if (*ptr == &mp_type_str || *ptr == &mp_type_bytes) { c = 'S'; }
else if (*ptr == &mp_type_bytearray || *ptr == &mp_type_array) { c = 'A'; }
#if MICROPY_PY_BUILTINS_BYTEARRAY
else if (*ptr == &mp_type_bytearray) { c = 'A'; }
#endif
#if MICROPY_PY_ARRAY
else if (*ptr == &mp_type_array) { c = 'A'; }
#endif
#if MICROPY_PY_BUILTINS_FLOAT
else if (*ptr == &mp_type_float) { c = 'F'; }
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment