list
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user