|
@@ -20,10 +20,12 @@ interface
|
|
uses
|
|
uses
|
|
System.DynLibs,
|
|
System.DynLibs,
|
|
System.CTypes;
|
|
System.CTypes;
|
|
|
|
+ System.Math;
|
|
{$ELSE FPC_DOTTEDUNITS}
|
|
{$ELSE FPC_DOTTEDUNITS}
|
|
uses
|
|
uses
|
|
dynlibs,
|
|
dynlibs,
|
|
- ctypes;
|
|
|
|
|
|
+ ctypes,
|
|
|
|
+ math;
|
|
{$ENDIF FPC_DOTTEDUNITS}
|
|
{$ENDIF FPC_DOTTEDUNITS}
|
|
|
|
|
|
const
|
|
const
|
|
@@ -358,6 +360,9 @@ begin
|
|
end;
|
|
end;
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
|
|
|
|
|
+var
|
|
|
|
+ mask : TFPUExceptionMask;
|
|
|
|
+
|
|
initialization
|
|
initialization
|
|
{$IFDEF NO_EXTERNAL_VARS}
|
|
{$IFDEF NO_EXTERNAL_VARS}
|
|
LoadExternalVariables;
|
|
LoadExternalVariables;
|
|
@@ -373,8 +378,12 @@ initialization
|
|
* between the version it was compiled for and the actual shared
|
|
* between the version it was compiled for and the actual shared
|
|
* library used.
|
|
* library used.
|
|
*)
|
|
*)
|
|
|
|
+ mask:=GetExceptionMask;
|
|
|
|
+ SetExceptionMask([exInvalidOp,exDenormalized,exZeroDivide,exOverflow,exUnderflow,exPrecision]);
|
|
|
|
+
|
|
LIBXML_TEST_VERSION;
|
|
LIBXML_TEST_VERSION;
|
|
|
|
|
|
|
|
+ SetExceptionMask(mask);
|
|
(*
|
|
(*
|
|
* overloading the error functions
|
|
* overloading the error functions
|
|
*)
|
|
*)
|