mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 13:19:34 +01:00
* fpc_raiseexception does not return a result.
git-svn-id: trunk@26837 -
This commit is contained in:
parent
749ff6b19d
commit
d004607876
@ -598,7 +598,7 @@ procedure fpc_dispatch_by_id(Result: Pointer; const Dispatch: pointer;DispDesc:
|
||||
|
||||
{$ifdef FPC_HAS_FEATURE_EXCEPTIONS}
|
||||
Function fpc_PushExceptAddr (Ft: {$ifdef CPU16}SmallInt{$else}Longint{$endif};_buf,_newaddr : pointer): PJmp_buf ; compilerproc;
|
||||
Function fpc_Raiseexception (Obj : TObject; AnAddr : CodePointer; AFrame : Pointer) : TObject; compilerproc;
|
||||
procedure fpc_Raiseexception (Obj : TObject; AnAddr : CodePointer; AFrame : Pointer); compilerproc;
|
||||
Procedure fpc_PopAddrStack; compilerproc;
|
||||
function fpc_PopObjectStack : TObject; compilerproc;
|
||||
function fpc_PopSecondObjectStack : TObject; compilerproc;
|
||||
|
||||
@ -211,7 +211,7 @@ begin
|
||||
end;
|
||||
|
||||
{$ifndef FPC_SYSTEM_HAS_RAISEEXCEPTION}
|
||||
Function fpc_RaiseException (Obj : TObject; AnAddr : CodePointer; AFrame : Pointer) : TObject;[Public, Alias : 'FPC_RAISEEXCEPTION']; compilerproc;
|
||||
procedure fpc_RaiseException (Obj : TObject; AnAddr : CodePointer; AFrame : Pointer);[Public, Alias : 'FPC_RAISEEXCEPTION']; compilerproc;
|
||||
var
|
||||
_ExceptObjectStack : PExceptObject;
|
||||
_ExceptAddrstack : PExceptAddr;
|
||||
@ -219,7 +219,6 @@ begin
|
||||
{$ifdef excdebug}
|
||||
writeln ('In RaiseException');
|
||||
{$endif}
|
||||
fpc_Raiseexception:=nil;
|
||||
PushExceptObject(Obj,AnAddr,AFrame);
|
||||
_ExceptAddrstack:=ExceptAddrStack;
|
||||
If _ExceptAddrStack=Nil then
|
||||
|
||||
@ -494,7 +494,7 @@ procedure fpc_dispatch_by_id(Result: Pointer; const Dispatch: pointer;DispDesc:
|
||||
(*
|
||||
{$ifdef FPC_HAS_FEATURE_EXCEPTIONS}
|
||||
Function fpc_PushExceptAddr (Ft: Longint;_buf,_newaddr : pointer): PJmp_buf ; compilerproc;
|
||||
Function fpc_Raiseexception (Obj : TObject; AnAddr,AFrame : Pointer) : TObject; compilerproc;
|
||||
procedure fpc_Raiseexception (Obj : TObject; AnAddr,AFrame : Pointer); compilerproc;
|
||||
Procedure fpc_PopAddrStack; compilerproc;
|
||||
function fpc_PopObjectStack : TObject; compilerproc;
|
||||
function fpc_PopSecondObjectStack : TObject; compilerproc;
|
||||
|
||||
@ -55,7 +55,7 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
function fpc_RaiseException(Obj: TObject; AnAddr,AFrame: Pointer): TObject; [public,alias: 'FPC_RAISEEXCEPTION']; compilerproc;
|
||||
procedure fpc_RaiseException(Obj: TObject; AnAddr,AFrame: Pointer); [public,alias: 'FPC_RAISEEXCEPTION']; compilerproc;
|
||||
var
|
||||
ctx: TContext;
|
||||
args: array[0..3] of PtrUint;
|
||||
@ -65,7 +65,6 @@ begin
|
||||
args[1]:=PtrUint(Obj);
|
||||
args[2]:=GetBacktrace(ctx,AFrame,PPointer(args[3]));
|
||||
RaiseException(FPC_EXCEPTION_CODE,EXCEPTION_NONCONTINUABLE,4,@args[0]);
|
||||
result:=nil;
|
||||
end;
|
||||
|
||||
|
||||
|
||||
@ -266,7 +266,7 @@ end;
|
||||
|
||||
{$push}
|
||||
{$codealign localmin=16} { TContext record requires this }
|
||||
function fpc_RaiseException(Obj: TObject; AnAddr,AFrame: Pointer): TObject; [public,alias: 'FPC_RAISEEXCEPTION']; compilerproc;
|
||||
procedure fpc_RaiseException(Obj: TObject; AnAddr,AFrame: Pointer); [public,alias: 'FPC_RAISEEXCEPTION']; compilerproc;
|
||||
var
|
||||
ctx: TContext;
|
||||
args: array[0..3] of PtrUint;
|
||||
@ -276,7 +276,6 @@ begin
|
||||
args[1]:=PtrUint(Obj);
|
||||
args[2]:=GetBacktrace(ctx,AFrame,PPointer(args[3]));
|
||||
RaiseException(FPC_EXCEPTION_CODE,EXCEPTION_NONCONTINUABLE,4,@args[0]);
|
||||
result:=nil;
|
||||
end;
|
||||
|
||||
procedure _fpc_local_unwind(frame,target: Pointer);[public,alias:'_FPC_local_unwind'];compilerproc;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user