Using two flags in conditonal compilation (version)

Chris Nicholson-Sauls via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 25 21:06:35 PDT 2014


version(DigitalMars) version = DMDAsm;
version(LDC) version = DMDAsm;

version(DMDAsm) asm {
   //dmd/ldc asm here
}
version(GDC) asm {
   //gdc asm here
}


http://dlang.org/version.html#VersionSpecification


More information about the Digitalmars-d-learn mailing list