mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 07:30:19 +02:00
TAChart: Use $PUSH/$POP instead of $IFDEFs to restore compiler options in SafeInfinity
git-svn-id: trunk@32306 -
This commit is contained in:
parent
d48b6c597d
commit
5e47f77c8b
@ -437,11 +437,9 @@ end;
|
||||
|
||||
function SafeInfinity: Double;
|
||||
begin
|
||||
{$IFOPT R+}{$DEFINE RangeChecking}{$ELSE}{$UNDEF RangeChecking}{$ENDIF}
|
||||
{$IFOPT Q+}{$DEFINE OverflowChecking}{$ELSE}{$UNDEF OverflowChecking}{$ENDIF}
|
||||
{$R-}{$Q-}
|
||||
{$PUSH}{$R-}{$Q-}
|
||||
Result := Infinity;
|
||||
{$IFDEF OverflowChecking}{$Q+}{$ENDIF}{$IFDEF RangeChecking}{$R+}{$ENDIF}
|
||||
{$POP}
|
||||
end;
|
||||
|
||||
function SafeInRange(AValue, ABound1, ABound2: Double): Boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user