Thanks very much Bart, Thomas, and Graeme, they're precious information. I even didn't notice about the built-in feature within FPC and Lazarus IDE.
Thanks again. ----- Original Message ---- From: Graeme Geldenhuys <graemeg.li...@gmail.com> To: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org> Sent: Mon, April 12, 2010 8:09:42 PM Subject: Re: [fpc-pascal] (no subject) On 12 April 2010 14:27, Tomas Hajny <xhaj...@hajny.biz> wrote: > > These are obviously all valid. There's also another possibility though > (having advantages and disadvantages compared to this) - you could have an > include file specifying this define and reference this include file from > all (relevant) source files. 100% correct Tomas, and a very handy option at that. We actually use this method in our company projects. Only downside - don't forget to specify the include file in each and every unit of your project. -- Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal