DMD Compiler Version Dependent Conditional Compilation

David Nadlinger via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 9 10:43:36 PDT 2014


On Monday, 9 June 2014 at 17:36:10 UTC, Nordlöw wrote:
> Can I use the version keyword or static if to perform 
> conditional compilation  that depends on the version of DMD?

The __VERSION__ magic token should do the job.

David


More information about the Digitalmars-d-learn mailing list