[fpc-pascal] (no subject)
bihar_anwar at rocketmail.com
Mon Apr 12 17:42:55 CEST 2010
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.
----- Original Message ----
From: Graeme Geldenhuys <graemeg.lists at gmail.com>
To: FPC-Pascal users discussions <fpc-pascal at 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 <XHajT03 at 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.
- Graeme -
fpGUI - a cross-platform Free Pascal GUI toolkit
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal