瀏覽代碼

* Moved ExceptObjProc from objpas to system, because it is going to be called from system. Also added ExceptClsProc variable.
* Fixed SExceptionErrorMessage, it was missing format placeholder.

git-svn-id: trunk@19787 -

sergei 13 年之前
父節點
當前提交
3b904943e7
共有 3 個文件被更改,包括 5 次插入5 次删除
  1. 4 0
      rtl/inc/systemh.inc
  2. 0 4
      rtl/objpas/objpas.pp
  3. 1 1
      rtl/objpas/sysconst.pp

+ 4 - 0
rtl/inc/systemh.inc

@@ -1184,6 +1184,10 @@ const
   AbstractErrorProc : TAbstractErrorProc = nil;
   AssertErrorProc   : TAssertErrorProc = @SysAssert;
   SafeCallErrorProc : TSafeCallErrorProc = nil;
+{$ifdef FPC_HAS_FEATURE_EXCEPTIONS}
+  ExceptObjProc     : Pointer = nil; { Used to convert OS exceptions to FPC exceptions. }
+  ExceptClsProc     : Pointer = nil;
+{$endif FPC_HAS_FEATURE_EXCEPTIONS}
 
 {*****************************************************************************
                           SetJmp/LongJmp

+ 0 - 4
rtl/objpas/objpas.pp

@@ -52,10 +52,6 @@ unit objpas;
 Var
    ExceptionClass: TClass; { Exception base class (must actually be Exception, defined in sysutils ) }
 {$endif FPC_HAS_FEATURE_CLASSES}
-{$ifdef FPC_HAS_FEATURE_EXCEPTIONS}
-Var
-   ExceptObjProc: Pointer; { Used to convert OS exceptions to exceptions in Delphi. Unused in FPC}
-{$endif FPC_HAS_FEATURE_EXCEPTIONS}
 
 {****************************************************************************
                              Compatibility routines.

+ 1 - 1
rtl/objpas/sysconst.pp

@@ -45,7 +45,7 @@ resourcestring
   SInvalidJulianDate            = '%f Julian cannot be represented as a DateTime';
   SErrIllegalDateFormatString   = '"%s" is not a valid date format string';
   SErrInvalidTimeFormat  = '"%s" is not a valid time';
-  SExceptionErrorMessage = 'exception at %p';
+  SExceptionErrorMessage = 'Exception at %p: %s';
   SExceptionStack        = 'Exception stack error';
   SExecuteProcessFailed  = 'Failed to execute "%s", error code: %d';
   SExternalException     = 'External exception %x';