This commit is contained in:
Qrakhen 2025-12-04 14:19:31 +01:00
parent bef91ed928
commit 290087f1a7
1 changed files with 4 additions and 1 deletions

View File

@ -118,12 +118,15 @@ public readonly struct Value : IValue, ISerialize<Value>, IDebug<string>
public string ToString(bool includeType)
{
if (Type == T.Void)
return $"void";
if (!includeType)
return $"{AsDynamic(false)}";
string type = Type.ToString();
if (Type.HasFlag(T.Pointer))
type = Ptr.Value?.Type.ToString() ?? "NullPtr";
type = Ptr.Value?.Type.ToString() ?? "ptr:null";
return $"<{type}, {AsDynamic(false) ?? "null"}>";
}