mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 08:18:12 +02:00
26 lines
456 B
ObjectPascal
26 lines
456 B
ObjectPascal
|
|
type
|
|
TLazLoggerLogEnabled = record end;
|
|
|
|
procedure Test(Log : TLazLoggerLogEnabled; const s : string);
|
|
begin
|
|
writeln('Test: ',s);
|
|
end;
|
|
|
|
procedure Testv(var Log : TLazLoggerLogEnabled; const s : string);
|
|
begin
|
|
writeln('Testv: ',s);
|
|
end;
|
|
|
|
procedure DebuglnStack(LogEnabled: TLazLoggerLogEnabled; const s: string);
|
|
begin
|
|
Test(LogEnabled, s);
|
|
Testv(LogEnabled, s);
|
|
end;
|
|
|
|
var
|
|
LE : TLazLoggerLogEnabled;
|
|
begin
|
|
DebuglnStack(LE,'Test string');
|
|
end.
|