Correct way to map C #define to version
bearophile
bearophileHUGS at lycos.com
Mon Oct 22 04:39:48 PDT 2012
Sumit Raja:
> Am I using version correctly? How is this done usually?
I think "version" is usually meant to be given as compiler
switch. Maybe a simple enum + static if is enough in your case.
And keep in mind that C int and D int are different on 64 bit
systems, the D int is always 32 bit. In Phobos there are ints of
the size of C.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list