externally imposed conditional compilation

Gor Gyolchanyan gor.f.gyolchanyan at gmail.com
Fri Nov 23 22:43:40 PST 2012


which is: take a version flag, make a enum out of it and compare it as you
want. right?


On Sat, Nov 24, 2012 at 10:39 AM, Vladimir Panteleev <
vladimir at thecybershadow.net> wrote:

> On Saturday, 24 November 2012 at 05:55:49 UTC, Gor Gyolchanyan wrote:
>
>> In case of WinAPI itself, which takes a dozen of preprocessor definitions,
>> would you like a WinAPI binding, where you need to mix in the WinAPI?
>>
>
> I believe the bindings on dsource use a sensible solution. It is similar
> to what is used in e.g. Pascal, the preprocessor of which doesn't support
> define values or comparisons (only IFDEF).
>



-- 
Bye,
Gor Gyolchanyan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20121124/85118a17/attachment.html>


More information about the Digitalmars-d mailing list