System.FSetExceptMask
Delphi
function FSetExceptMask(NewMasks: UInt32; ExceptMasks: UInt32): UInt32;
C++
extern DELPHI_PACKAGE unsigned __fastcall FSetExceptMask(unsigned NewMasks, unsigned ExceptMasks = (unsigned)(0x3f));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.pas System.hpp |
System | System |
Description
Sets the floating point exception mask flags.
FSetExceptMask sets mask flags specified by the ExceptMasks
parameter.
NewMasks
represents a combination of the following values:
Constant |
---|
femINEXACT |
femUNDERFLOW |
femOVERFLOW |
femDIVBYZERO |
femINVALID |
FSetExceptMask returns the previous value of the unit's floating point exception mask flag specified by ExceptMasks
.
Excepts
specifies which exception masks are changed and returned. For example, if ExceptMasks
is femDIVBYZERO
or femINVALID
, only these masks are changed using NewMasks
while FSetExceptMask only returns the previous status of femDIVBYZERO
and femINVALID
.
Notes:
- The
NewMasks
,ExceptMasks
parameter and the function return values are different for each platform.
- In order to keep compatibility between different platforms, consider using SetExceptionMask and TArithmeticExceptions.