mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 09:59:23 +02:00
LCL, added dbgs(variant)
git-svn-id: trunk@43774 -
This commit is contained in:
parent
065d37b166
commit
103d6a39e3
@ -294,6 +294,7 @@ function DbgsVKCode(c: word): string;
|
||||
function DbgS(const ASize: TSize): string; overload; inline;
|
||||
function DbgS(const ATM: TTextMetric): string; overload;
|
||||
function DbgS(const AScrollInfo: TScrollInfo): string; overload;
|
||||
function DbgS(const AVariant: Variant): string; overload;
|
||||
|
||||
procedure DbgOutThreadLog(const Msg: string); overload;
|
||||
procedure DebuglnThreadLog(const Msg: string); overload;
|
||||
@ -2312,6 +2313,17 @@ begin
|
||||
if Result = '' then Result := '(no scrollinfo)';
|
||||
end;
|
||||
|
||||
function DbgS(const AVariant: Variant): string;
|
||||
begin
|
||||
if TVarData(AVariant).VType = varEmpty then
|
||||
result := '<empty>'
|
||||
else
|
||||
if TVarData(AVariant).vtype = varNull then
|
||||
result := '<null>'
|
||||
else
|
||||
result := AVariant;
|
||||
end;
|
||||
|
||||
procedure DbgOutThreadLog(const Msg: string);
|
||||
var
|
||||
PID: PtrInt;
|
||||
|
Loading…
Reference in New Issue
Block a user