git-svn-id: trunk@38327 -
This commit is contained in:
michael 2018-02-24 11:12:11 +00:00
parent 84377291b4
commit 77caa28bab
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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;