Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Changeset 999:2b6c2e961f25

Show
Ignore:
Timestamp:
02/26/09 12:28:50 (3 years ago)
Author:
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
branch:
default
Message:

Added some missing version identifiers.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gen/main.cpp

    r997 r999  
    134134    global.params.ddocfiles = new Array(); 
    135135 
     136 
    136137    // Set predefined version identifiers 
    137138    VersionCondition::addPredefinedGlobalIdent("LLVM"); 
    138139    VersionCondition::addPredefinedGlobalIdent("LDC"); 
    139140    VersionCondition::addPredefinedGlobalIdent("all"); 
     141#if DMDV2 
     142    VersionCondition::addPredefinedGlobalIdent("D_Version2"); 
     143#endif 
     144 
    140145 
    141146    // read the inifile 
     
    443448 
    444449    // a generic 64bit version 
    445     // why isn't this in D to begin with ? 
    446450    if (global.params.is64bit) { 
    447451        VersionCondition::addPredefinedGlobalIdent("LLVM64"); 
     452        // FIXME: is this always correct? 
     453        VersionCondition::addPredefinedGlobalIdent("D_LP64"); 
    448454    } 
    449455 
     
    508514    if (global.params.doDocComments) 
    509515        VersionCondition::addPredefinedGlobalIdent("D_Ddoc"); 
     516 
     517#if DMDV2 
     518    // unittests? 
     519    if (global.params.useUnitTests) 
     520        VersionCondition::addPredefinedGlobalIdent("unittest"); 
     521#endif 
    510522 
    511523    // Initialization 
Copyright © 2008, LDC Development Team.