Conditional compilation for debug/release

Namespace via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 6 08:24:52 PDT 2015


On Monday, 6 April 2015 at 15:15:48 UTC, Johan Engelen wrote:
> On Monday, 6 April 2015 at 14:55:58 UTC, Namespace wrote:
>>
>> debug {
>>    pragma(lib, "libcmtd.lib");
>> } else {
>>    pragma(lib, "libcmt.lib");
>> }
>
> Thanks for the quick reply!
>
> Worth adding an example like that to 
> http://dlang.org/version.html ?

It's there already:
http://dlang.org/version.html#debug
;)


More information about the Digitalmars-d-learn mailing list