[Lazarus] Conditional define via Build mode?

Elazar Dornelles Ceza elazar021 at yahoo.com.br
Fri Jan 6 20:22:09 CET 2012


>> How can I set DEBUG only when in Debug build mode? I had a look at the
>> wiki page and the Project Options, Build Macros but I'm a bit lost.
> You have to separate IDE macros and FPC macros.
> FPC macros are defined via the Compiler Options / Custom options, e.g.
> -dDEBUG.

Hi, delphi has IFOTP directive to do something like this, search more about
to see if can you use the same on FPC.
Here is one small example (portuguese)
http://www.evolutionsystems.com.br/?p=173


-- 
Atenc;
Elazar Dornelles Ceza
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120106/d47289a2/attachment-0003.html>


More information about the Lazarus mailing list