codetools: added dbgs(extended) parameter to avoid conflicts on systems without extended

git-svn-id: trunk@12716 -
This commit is contained in:
mattias 2007-11-03 16:32:04 +00:00
parent 8df71f8292
commit 56c010baf4

View File

@ -263,7 +263,7 @@ function DbgS(const i: int64): string; overload;
function DbgS(const r: TRect): string; overload;
function DbgS(const p: TPoint): string; overload;
function DbgS(const p: pointer): string; overload;
function DbgS(const e: extended): string; overload;
function DbgS(const e: extended; MaxDecimals: integer = 999): string; overload;
function DbgS(const b: boolean): string; overload;
function DbgSName(const p: TObject): string; overload;
function DbgSName(const p: TClass): string; overload;
@ -2057,9 +2057,9 @@ begin
Result:=HexStr(p-nil,2*sizeof(PtrInt));
end;
function DbgS(const e: extended): string;
function DbgS(const e: extended; MaxDecimals: integer = 999): string;
begin
Result:=FloatToStr(e);
Result:=copy(FloatToStr(e),1,MaxDecimals);
end;
function DbgS(const b: boolean): string;