aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-03-23 20:41:49 +0000
committergingerBill <bill@gingerbill.org>2021-03-23 20:41:49 +0000
commit331167e91f6cd414f71cc178c30f09de59603554 (patch)
tree219fa31bf098664f52d9c3cb773704191d96dbb6 /src/types.cpp
parente229882fdeaddbc26f57ab01e24ada1792c86f98 (diff)
Improve debug type names for composite types (arrays, map, struct, union)
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp
index b714b7798..f211f4ad7 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -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);
}