Re: [fpc-pascal] Local compiler options

2007-12-05 Thread Jonas Maebe
On 05 Dec 2007, at 10:23, Adriaan van Os wrote: I didn't find an equivalent for FPC in delphi or objfpc mode. All I can think of is {$ifopt R+} {$define local_RangeCheck} {$endif} {$R-} i:= longword( -1) {$ifdef local_RangeCheck} {R+} {$endif} That's indeed the classic way to do it in TP

[fpc-pascal] Local compiler options

2007-12-05 Thread Adriaan van Os
Suppose, I want to use a compiler directive locally and reset it after that. GPC has {$local ...} and {$endlocal}. FPC in mac-mode has {$push} and {$pop}, e.g. {$push} i:= longword( -1) {$pop} I didn't find an equivalent for FPC in delphi or objfpc mode. All I can think of is {$ifopt R+} {