[fpc-pascal] overflow checking

Alexey Pavluchenko pavluchenko at isp.kiev.ua
Fri Jun 23 11:20:17 CEST 2006


Hello Пётр,

Friday, June 23, 2006, 11:59:26 AM, you wrote:

[skip]
ПК> Is there an easier way?
ПК> Like
ПК> {$SAVE Q} {$Q-} e:=f+g; {$LOAD Q}
ПК> so that it will fit one line?

{$IFOPT Q+} {$Q-} {$DEFINE Q_SWITCHED} {$ENDIF}
(* do some stuff here *)
{$IFDEF Q_SWITCHED} {$Q+} {$UNDEF Q_SWITCHED} {$ENDIF}

May not fit in one line though :)

-- 
Best regards,
 Alexey





More information about the fpc-pascal mailing list