<div><div class="im">>> How can I set DEBUG only when in Debug build mode? I had a look at the<br>>> wiki page and the Project Options, Build Macros but I'm a bit lost.<br></div><div class="im">> You have to separate IDE macros and FPC macros.<br>
> FPC macros are defined via the Compiler Options / Custom options, e.g.<br>> -dDEBUG.<br></div></div><div class="im"><br></div>Hi, delphi has IFOTP directive to do something like this, search more about to see if can you use the same on FPC.<div>
Here is one small example (portuguese) <a href="http://www.evolutionsystems.com.br/?p=173">http://www.evolutionsystems.com.br/?p=173</a></div><div><div><div><br></div><div><br>-- <br>Atenc;<div>Elazar Dornelles Ceza</div>
<br>
</div></div></div>