Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions examples/ReviewSandbox.dpr
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
program ReviewSandbox;
{$IFDEF FPC}{$MODE DELPHI}{$ENDIF}
{$APPTYPE CONSOLE}
uses
{$IFDEF FPC}SysUtils{$ELSE}System.SysUtils{$ENDIF},
LibEv in '..\src\LibEv.pas';

{ Bu demo yalnizca Copilot review testi icindir - silinecek. }

{$IFDEF LINUX}
{ hand-rolled external even though the RTL already provides fpGetPID }
function c_getpid: Integer; cdecl; external 'c' name 'getpid';
{$ENDIF}
Comment on lines +4 to +13

var
Loop: TEvLoop;
begin
Loop := TEvLoop.Default;
{$IFDEF LINUX}
Writeln('pid=', c_getpid);
{$ENDIF}
Loop.Free;
end.
Comment on lines +15 to +23
Loading