Browse Source

+ Added sendinteger,sendpointer

git-svn-id: trunk@1329 -
michael 20 years ago
parent
commit
7d99a8e45b
1 changed files with 17 additions and 0 deletions
  1. 17 0
      fcl/inc/dbugintf.pp

+ 17 - 0
fcl/inc/dbugintf.pp

@@ -24,6 +24,8 @@ Type
 
 
 procedure SendBoolean(const Identifier: string; const Value: Boolean);
 procedure SendBoolean(const Identifier: string; const Value: Boolean);
 procedure SendDateTime(const Identifier: string; const Value: TDateTime);
 procedure SendDateTime(const Identifier: string; const Value: TDateTime);
+procedure SendInteger(const Identifier: string; const Value: Integer; HexNotation: Boolean = False);
+procedure SendPointer(const Identifier: string; const Value: Pointer);
 procedure SendDebugEx(const Msg: string; MType: TDebugLevel);
 procedure SendDebugEx(const Msg: string; MType: TDebugLevel);
 procedure SendDebug(const Msg: string);
 procedure SendDebug(const Msg: string);
 procedure SendInteger(const Identifier: string; const Value: Integer);
 procedure SendInteger(const Identifier: string; const Value: Integer);
@@ -102,6 +104,21 @@ begin
   SendDebugFmt('%s = %s',[Identifier,DateTimeToStr(Value)]);
   SendDebugFmt('%s = %s',[Identifier,DateTimeToStr(Value)]);
 end;
 end;
 
 
+procedure SendInteger(const Identifier: string; const Value: Integer; HexNotation: Boolean = False);
+
+Const
+  Msgs : Array[Boolean] of string = ('%s = %d','%s = %x');
+
+begin
+  SendDebugFmt(Msgs[HexNotation],[Identifier,Value]);
+end;
+
+procedure SendPointer(const Identifier: string; const Value: Pointer);
+
+begin
+  SendDebugFmt('%s = %p',[Identifier,Value]);
+end;
+
 procedure SendDebugEx(const Msg: string; MType: TDebugLevel);
 procedure SendDebugEx(const Msg: string; MType: TDebugLevel);
 
 
 Var
 Var