Re: [fpc-pascal] Conditional compilation using {$IFOPT ...} and {$IF OPTION(...)}

2021-08-25 Thread Michael Van Canneyt via fpc-pascal
On Thu, 26 Aug 2021, LacaK via fpc-pascal wrote: Hello, looking at https://www.freepascal.org/docs-html/prog/progsu126.html#x139-142.4.1 There is mentioned "OPTION(opt)" with comment: "evaluates to TRUE if a compiler option is set (mode MacPas only). It is equivalent to the {$IFOPT }

[fpc-pascal] Raise exception in libray which will not halt host application

2021-08-25 Thread LacaK via fpc-pascal
Hello, is there way how to raise exception in library without using SysUtils? Now I call System.RunError() in case unexpected situation occurs in library (DLL), but this exits also application which links library. Is there way how to exit library in a way that application can catch exception (wi

[fpc-pascal] Conditional compilation using {$IFOPT ...} and {$IF OPTION(...)}

2021-08-25 Thread LacaK via fpc-pascal
Hello, looking at https://www.freepascal.org/docs-html/prog/progsu126.html#x139-142.4.1 There is mentioned "OPTION(opt)" with comment: "evaluates to TRUE if a compiler option is set (mode MacPas only). It is equivalent to the {$IFOPT } directive." 1. What is equivalent usage for {$IFOPT

Re: [fpc-pascal] Example for unit paszlib

2021-08-25 Thread Michael Van Canneyt via fpc-pascal
On Wed, 25 Aug 2021, Rainer Stratmann via fpc-pascal wrote: Is there an example for the unit paszlib? This does not work: https://wiki.lazarus.freepascal.org/paszlib What does not work exactly ? the zipper unit is used a lot. It definitely works. I have Lazarus 2.0.0 FPC 3.0.4 Maybe st

[fpc-pascal] Example for unit paszlib

2021-08-25 Thread Rainer Stratmann via fpc-pascal
Is there an example for the unit paszlib? This does not work: https://wiki.lazarus.freepascal.org/paszlib I have Lazarus 2.0.0 FPC 3.0.4 May be there are different versions of paszlib. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https