<p>Am 24.09.2014 10:15 schrieb "Tomas Hajny" <<a href="mailto:XHajT03@hajny.biz">XHajT03@hajny.biz</a>>:<br>
> However, the trunk compiler offers also another option, although it may or<br>
> may not be usable for you. In particular, take the following:<br>
><br>
> ---------<br>
> var<br>
> S2: string;<br>
><br>
> procedure Log (S: string);<br>
> begin<br>
> {$IFDEF TEST}<br>
> WriteLn (S);<br>
> {$ENDIF TEST}<br>
> end;<br>
><br>
> begin<br>
> ReadLn (S2);<br>
> Log ('Input = ' + S2);<br>
> end.<br>
> =========<br>
><br>
> If this is compiled with trunk compiler using -OoREMOVEEMPTYPROCS (without<br>
> -dTEST), procedure Log is not called at all and the concatenation of<br>
> strings in its parameter is skipped as well.</p>
<p>Another possibility would be to define Log() as "inline", which should get rid of the call and maybe the concatenation as well and already works in 2.6.x (though "array of const" would not be supported if needed)</p>
<p>Regards,<br>
Sven</p>