mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 10:55:55 +02:00
LCL: added dbgs for TMethod
git-svn-id: trunk@28432 -
This commit is contained in:
parent
a4f82ba95d
commit
3fbccdd74b
@ -257,6 +257,7 @@ function DbgS(const p: pointer): string; overload;
|
|||||||
function DbgS(const e: extended; MaxDecimals: integer = 999): string; overload;
|
function DbgS(const e: extended; MaxDecimals: integer = 999): string; overload;
|
||||||
function DbgS(const b: boolean): string; overload;
|
function DbgS(const b: boolean): string; overload;
|
||||||
function DbgS(const s: TComponentState): string; overload;
|
function DbgS(const s: TComponentState): string; overload;
|
||||||
|
function DbgS(const m: TMethod): string; overload;
|
||||||
function DbgSName(const p: TObject): string; overload;
|
function DbgSName(const p: TObject): string; overload;
|
||||||
function DbgSName(const p: TClass): string; overload;
|
function DbgSName(const p: TClass): string; overload;
|
||||||
function DbgStr(const StringWithSpecialChars: string): string; overload;
|
function DbgStr(const StringWithSpecialChars: string): string; overload;
|
||||||
@ -2550,6 +2551,19 @@ begin
|
|||||||
Result:='['+Result+']';
|
Result:='['+Result+']';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function DbgS(const m: TMethod): string;
|
||||||
|
var
|
||||||
|
o: TObject;
|
||||||
|
aMethodName: ShortString;
|
||||||
|
begin
|
||||||
|
o:=TObject(m.Data);
|
||||||
|
Result:=dbgsname(o)+'.'+dbgs(m.Code);
|
||||||
|
if (o<>nil) and (m.Code<>nil) then begin
|
||||||
|
aMethodName:=o.MethodName(m.Code);
|
||||||
|
Result:=Result+'='''+aMethodName+'''';
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
function DbgSName(const p: TObject): string;
|
function DbgSName(const p: TObject): string;
|
||||||
begin
|
begin
|
||||||
if p=nil then
|
if p=nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user