You've already forked lazarus-ccr
instantfpc
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1535 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
13
applications/instantfpc/examples/exitcode.pas
Executable file
13
applications/instantfpc/examples/exitcode.pas
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env instantfpc
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
uses SysUtils;
|
||||
|
||||
var i: integer;
|
||||
begin
|
||||
i:=StrToInt(ParamStr(1));
|
||||
writeln('exit code: ',i);
|
||||
Halt(i);
|
||||
end.
|
||||
|
Reference in New Issue
Block a user