This commit is contained in:
agra
2026-02-11 01:43:30 +02:00
parent 25e1372731
commit 89fc6427c4
6 changed files with 236 additions and 27 deletions

View File

@@ -194,7 +194,9 @@ slice_to_string :: (items: []$T) -> string {
pointer_to_string :: (p: $T) -> string {
addr : s64 = xx p;
concat(type_name(T), concat("@", int_to_hex_string(addr)));
if addr == 0 { "null"; } else {
concat(type_name(T), concat("@0x", int_to_hex_string(addr)));
}
}
union_to_string :: (u: $T) -> string {