mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 03:41:06 +02:00
* Defined ExceptionClass and ExceptObjProc for Delphi compatibility (bug 8459)
git-svn-id: trunk@7850 -
This commit is contained in:
parent
e002e6b9f4
commit
07fdede9b8
@ -40,6 +40,10 @@ unit objpas;
|
|||||||
PPointerArray = ^PointerArray;
|
PPointerArray = ^PointerArray;
|
||||||
TBoundArray = array of integer;
|
TBoundArray = array of integer;
|
||||||
|
|
||||||
|
Var
|
||||||
|
ExceptionClass: TClass; { Exception base class (must actually be Exception, defined in sysutils ) }
|
||||||
|
ExceptObjProc: Pointer; { Used to convert OS exceptions to exceptions in Delphi. Unused in FPC}
|
||||||
|
|
||||||
{****************************************************************************
|
{****************************************************************************
|
||||||
Compatibility routines.
|
Compatibility routines.
|
||||||
****************************************************************************}
|
****************************************************************************}
|
||||||
@ -94,7 +98,6 @@ unit objpas;
|
|||||||
TResStringRec=AnsiString;
|
TResStringRec=AnsiString;
|
||||||
Function LoadResString(p:PResStringRec):AnsiString;
|
Function LoadResString(p:PResStringRec):AnsiString;
|
||||||
|
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
{****************************************************************************
|
{****************************************************************************
|
||||||
|
@ -358,6 +358,7 @@ Procedure InitExceptions;
|
|||||||
(e.g: SIGSEGV -> ESegFault or so.)
|
(e.g: SIGSEGV -> ESegFault or so.)
|
||||||
}
|
}
|
||||||
begin
|
begin
|
||||||
|
ExceptionClass := Exception;
|
||||||
ExceptProc:=@CatchUnhandledException;
|
ExceptProc:=@CatchUnhandledException;
|
||||||
// Create objects that may have problems when there is no memory.
|
// Create objects that may have problems when there is no memory.
|
||||||
OutOfMemory:=EOutOfMemory.Create(SOutOfMemory);
|
OutOfMemory:=EOutOfMemory.Create(SOutOfMemory);
|
||||||
|
Loading…
Reference in New Issue
Block a user