mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 23:03:31 +02:00
LCL: added CloseDebugOutput
git-svn-id: trunk@11267 -
This commit is contained in:
parent
5aeedb0533
commit
5d8235febb
@ -249,6 +249,8 @@ procedure DebuglnThreadLog(const Msg: string); overload;
|
||||
procedure DebuglnThreadLog(Args: array of const); overload;
|
||||
procedure DebuglnThreadLog; overload;
|
||||
|
||||
procedure CloseDebugOutput;
|
||||
|
||||
// some string manipulation functions
|
||||
function StripLN(const ALine: String): String;
|
||||
function GetPart(const ASkipTo, AnEnd: String; var ASource: String): String; overload;
|
||||
@ -1301,13 +1303,19 @@ begin
|
||||
DebugTextAllocated := true;
|
||||
end;
|
||||
|
||||
procedure FinalizeDebugOutput;
|
||||
procedure CloseDebugOutput;
|
||||
begin
|
||||
if DebugTextAllocated then begin
|
||||
Close(DebugText^);
|
||||
Dispose(DebugText);
|
||||
DebugTextAllocated := false;
|
||||
end;
|
||||
DebugText := nil;
|
||||
end;
|
||||
|
||||
procedure FinalizeDebugOutput;
|
||||
begin
|
||||
CloseDebugOutput;
|
||||
end;
|
||||
|
||||
procedure DebugLn(Args: array of const);
|
||||
|
Loading…
Reference in New Issue
Block a user