Browse Source

* the raise helper routine get the exception object call by value

florian 27 years ago
parent
commit
cc290ede1a
1 changed files with 6 additions and 6 deletions
  1. 6 6
      rtl/inc/except.inc

+ 6 - 6
rtl/inc/except.inc

@@ -1,7 +1,7 @@
 {
 {
     $Id$
     $Id$
     This file is part of the Free Pascal run time library.
     This file is part of the Free Pascal run time library.
-    Copyright (c) 1993,97 by xxxx
+    Copyright (c) 1998 by Michael Van Canneyt
     member of the Free Pascal development team
     member of the Free Pascal development team
 
 
     See the file COPYING.FPC, included in this distribution,
     See the file COPYING.FPC, included in this distribution,
@@ -19,9 +19,9 @@
 
 
 
 
 Const 
 Const 
-  { Type of exception. Currently only one.} 
+  { Type of exception. Currently only one. } 
   FPC_EXCEPTION   = 1;
   FPC_EXCEPTION   = 1;
-  { types of frames for the exception address stack}
+  { types of frames for the exception address stack }
   cExceptionFrame = 1;
   cExceptionFrame = 1;
   cFinalizeFrame  = 2;
   cFinalizeFrame  = 2;
 
 
@@ -44,7 +44,7 @@ Type
 
 
 Const 
 Const 
   CatchAllExceptions = -1;
   CatchAllExceptions = -1;
-      
+
 Var ExceptAddrStack : PExceptAddr;
 Var ExceptAddrStack : PExceptAddr;
     ExceptObjectStack : PExceptObject;
     ExceptObjectStack : PExceptObject;
 
 
@@ -100,7 +100,7 @@ begin
   ExceptObjectStack^.Addr:=AnAddr;
   ExceptObjectStack^.Addr:=AnAddr;
 end;
 end;
 
 
-Function Raiseexcept (Var Obj : TObject; AnAddr : Pointer) : TObject;[Public, Alias : 'FPC_RAISEEXCEPTION'];
+Function Raiseexcept (Obj : TObject; AnAddr : Pointer) : TObject;[Public, Alias : 'FPC_RAISEEXCEPTION'];
 
 
 begin
 begin
 {$ifdef excdebug}
 {$ifdef excdebug}
@@ -186,4 +186,4 @@ Procedure InitExceptions;
 begin
 begin
   ExceptObjectstack:=Nil;
   ExceptObjectstack:=Nil;
   ExceptAddrStack:=Nil;
   ExceptAddrStack:=Nil;
-end;
+end;