Browse Source

+ add TValue.ToString implementations for pointers and interfaces

git-svn-id: trunk@41833 -
svenbarth 6 years ago
parent
commit
f9fe3d0a0a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/rtl-objpas/src/inc/rtti.pp

+ 3 - 0
packages/rtl-objpas/src/inc/rtti.pp

@@ -1642,6 +1642,9 @@ begin
     tkQWord   : result := IntToStr(AsUInt64);
     tkInt64   : result := IntToStr(AsInt64);
     tkBool    : result := BoolToStr(AsBoolean, True);
+    tkPointer : result := '(pointer @ ' + HexStr(FData.FAsPointer) + ')';
+    tkInterface : result := '(interface @ ' + HexStr(PPointer(FData.FValueData.GetReferenceToRawData)^) + ')';
+    tkInterfaceRaw : result := '(raw interface @ ' + HexStr(FData.FAsPointer) + ')';
   else
     result := '';
   end;