mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-31 09:30:17 +02:00
parent
84377291b4
commit
77caa28bab
@ -21,6 +21,7 @@ Function GetLastOSError : Integer;
|
||||
{$endif}
|
||||
Procedure RaiseLastOSError;overload;
|
||||
Procedure RaiseLastOSError(LastError: Integer);overload;
|
||||
procedure CheckOSError(LastError: Integer);platform;{$ifdef SYSTEMINLINE}inline;{$endif}
|
||||
|
||||
Function GetEnvironmentVariable(Const EnvVar : AnsiString) : AnsiString;
|
||||
Function GetEnvironmentVariable(Const EnvVar : UnicodeString) : UnicodeString;
|
||||
|
@ -471,6 +471,13 @@ begin
|
||||
end;
|
||||
|
||||
{$endif}
|
||||
|
||||
procedure CheckOSError(LastError: Integer);
|
||||
begin
|
||||
if LastError <> 0 then
|
||||
RaiseLastOSError(LastError);
|
||||
end;
|
||||
|
||||
Procedure AssertErrorHandler (Const Msg,FN : ShortString;LineNo:longint; TheAddr : pointer);
|
||||
Var
|
||||
S : String;
|
||||
|
Loading…
Reference in New Issue
Block a user