www.digitalmars.com         C & C++   DMDScript  

D - What "version()"s are on by default? (On a Win32 dmd.exe)

reply "Matthew Wilson" <matthew stlsoft.org> writes:

Oct 10 2003
parent reply "Walter" <walter digitalmars.com> writes:
"Matthew Wilson" <matthew stlsoft.org> wrote in message
news:bm5nme$2ks0$1 digitaldaemon.com...

See www.digitalmars.com/d/version.html

For dmd.exe, looking at the mars.c source:

    // Predefine version identifiers
    VersionCondition::addIdent("DigitalMars");
#if _WIN32
    VersionCondition::addIdent("Win32");
#endif /* _WIN32 */
#if linux
    VersionCondition::addIdent("linux");
#endif /* linux */
    VersionCondition::addIdent("X86");
    VersionCondition::addIdent("LittleEndian");
    VersionCondition::addIdent("D_InlineAsm");
Oct 10 2003
parent reply "Matthew Wilson" <matthew stlsoft.org> writes:
There should just be a "-showversion" option on dmd.exe, as in

">dmd -showversion
Defined versions:
  DigitalMars
  Win32
  X86
  LittleEndian
  D_InlineAsm
"

No-one should have to look at compiler source code!

"Walter" <walter digitalmars.com> wrote in message
news:bm6rn3$12ud$2 digitaldaemon.com...
 "Matthew Wilson" <matthew stlsoft.org> wrote in message
 news:bm5nme$2ks0$1 digitaldaemon.com...

 See www.digitalmars.com/d/version.html

 For dmd.exe, looking at the mars.c source:

     // Predefine version identifiers
     VersionCondition::addIdent("DigitalMars");
 #if _WIN32
     VersionCondition::addIdent("Win32");
 #endif /* _WIN32 */
 #if linux
     VersionCondition::addIdent("linux");
 #endif /* linux */
     VersionCondition::addIdent("X86");
     VersionCondition::addIdent("LittleEndian");
     VersionCondition::addIdent("D_InlineAsm");
Oct 10 2003
parent reply "Walter" <walter digitalmars.com> writes:
"Matthew Wilson" <matthew stlsoft.org> wrote in message
news:bm736o$1cle$1 digitaldaemon.com...
 No-one should have to look at compiler source code!
"Use the Source, Luke."
Oct 11 2003
parent "Matthew Wilson" <matthew stlsoft.org> writes:
Nonsense. Let's have it listed by DMD. And while you're at it, I thought we
were going to get readable argument mismatch errors in a listed columnar
format?

And while you're at it, can you call at the pizza shop and get me a ...



"Walter" <walter digitalmars.com> wrote in message
news:bm9ppm$21u7$1 digitaldaemon.com...
 "Matthew Wilson" <matthew stlsoft.org> wrote in message
 news:bm736o$1cle$1 digitaldaemon.com...
 No-one should have to look at compiler source code!
"Use the Source, Luke."
Oct 11 2003