Improve debug type names for composite types (arrays, map, struct, union)

This commit is contained in:
gingerBill
2021-03-23 20:41:49 +00:00
parent e229882fde
commit 331167e91f
2 changed files with 47 additions and 46 deletions

View File

@@ -3623,6 +3623,9 @@ gbString write_type_to_string(gbString str, Type *type) {
}
gbString type_to_string(Type *type, gbAllocator allocator) {
return write_type_to_string(gb_string_make(allocator, ""), type);
}
gbString type_to_string(Type *type) {
return write_type_to_string(gb_string_make(heap_allocator(), ""), type);
}