List defined version specifications

Johan Engelen via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Oct 19 13:13:32 PDT 2016


On Wednesday, 19 October 2016 at 10:25:51 UTC, Lodovico Giaretta 
wrote:
> Hi!
>
> A simple question: is there a way to list all defined version 
> specifications?

Perhaps not what you are looking for but on the commandline:

>  bin/ldc2 -v test.d
...
predefs   LDC all D_Version2 assert X86_64 D_InlineAsm_X86_64 
D_HardFloat
           LittleEndian D_LP64 D_PIC OSX darwin Posix D_ObjectiveC 
LDC_LLVM_309

-Johan


More information about the Digitalmars-d-learn mailing list