Explorar o código

* added enhancedraise define

peter %!s(int64=25) %!d(string=hai) anos
pai
achega
8818701433
Modificáronse 2 ficheiros con 8 adicións e 7 borrados
  1. 5 1
      compiler/options.pas
  2. 3 6
      rtl/objpas/sysutils.pp

+ 5 - 1
compiler/options.pas

@@ -1226,6 +1226,7 @@ begin
   def_symbol('CARDINALMULFIXED');
 {$endif cardinalmulfix}
   def_symbol('CORRECTFLDCW');
+  def_symbol('ENHANCEDRAISE');
 
 { some stuff for TP compatibility }
 {$ifdef i386}
@@ -1450,7 +1451,10 @@ end;
 end.
 {
   $Log$
-  Revision 1.65  2000-04-10 11:36:19  pierre
+  Revision 1.66  2000-04-24 13:34:29  peter
+    * added enhancedraise define
+
+  Revision 1.65  2000/04/10 11:36:19  pierre
    * get -g-l to work
 
   Revision 1.64  2000/04/07 14:56:18  peter

+ 3 - 6
rtl/objpas/sysutils.pp

@@ -260,7 +260,7 @@ begin
   else
    E:=Exception.CreateFmt (SUnKnownRunTimeError,[Errno]);
   end;
-  Raise E at longint(Address),longint(Frame);
+  Raise E at longint(Address){$ifdef ENHANCEDRAISE},longint(Frame){$endif};
 end;
 
 
@@ -306,11 +306,8 @@ Finalization
 end.
 {
     $Log$
-    Revision 1.44  2000-04-24 11:11:50  peter
-      * backtraces for exceptions are now only generated from the place of the
-        exception
-      * frame is also pushed for exceptions
-      * raise statement enhanced with [,<frame>]
+    Revision 1.45  2000-04-24 13:34:29  peter
+      * added enhancedraise define
 
     Revision 1.43  2000/03/30 13:54:15  pierre
      No stack check inside CatchUnhandledException