dmd.cond
    Evaluate compile-time conditionals, such as static if version and debug.
  
Specification: Conditional Compilation
License
Source: cond.d
Documentation: https://dlang.org/phobos/dmd_cond.html
- 
  DeclarationenumInclude: ubyte;- 
  DeclarationnotComputednot computed yet 
- 
  Declarationyesinclude the conditional code 
- 
  Declarationnodo not include the conditional code 
 
- 
  
- 
  DeclarationclassStaticForeach: dmd.root.rootobject.RootObject;Implements common functionality for StaticForeachDeclaration and StaticForeachStatement This performs the necessary lowerings before dmd.statementsem.makeTupleForeach can be used to expand the corresponding static foreachdeclaration or statement.- 
  DeclarationForeachStatementaggrfe;Not nulliff thestatic foreachis over an aggregate. In this case, it contains the corresponding ForeachStatement. For StaticForeachDeclaration, the body isnull.
- 
  DeclarationForeachRangeStatementrangefe;Not nulliff thestatic foreachis over a range. Exactly one of theaggrefeandrangefenull. Seeaggrfefield for more details.
- 
  DeclarationboolneedExpansion;trueif it is necessary to expand a tuple into multiple variables (see lowerNonArrayAggregate).
- 
  Declarationvoidprepare(Scope*sc);Perform static foreachlowerings that are necessary in order to finally expand thestatic foreachusingdmd.statementsem.makeTupleForeach.
- 
  Declarationboolready();Return Valuetrueiffreadyto calldmd.statementsem.makeTupleForeach.
 
- 
  
- 
  Declarationabstract classDVCondition: dmd.cond.Condition;
- 
  DeclarationclassDebugCondition: dmd.cond.DVCondition;- 
  Declarationdeprecated static voidaddGlobalIdent(const(char)*ident);
 static voidaddGlobalIdent(stringident);
 static voidaddGlobalIdent(const(char)[]ident);Add an user-supplied identifier to the list of global debug identifiers DiscussionCan be called from either the driver or a debug = Ident;statement. Unlike version identifier, there isn't any reserved debug identifier so no validation takes place.Parametersconst(char)*identidentifier to add 
- 
  Declarationthis(const ref Locloc, Modulemod, uintlevel, Identifierident);Instantiate a new DebugConditionParametersModulemodModule this node belongs to uintlevelMinimum global levelthis condition needs to pass. Only used ifidentnull.IdentifieridentIdentifier required for this condition to pass. If null, this conditiion will use an integerlevel.LoclocLocation in the source file 
 
- 
  
- 
  DeclarationclassVersionCondition: dmd.cond.DVCondition;Node to represent a version condition DiscussionA version condition is of the form: - version (Identifier)
 - 
  Declarationstatic voidcheckReserved(const ref Locloc, const(char)[]ident);Raises an error if a version identifier is reserved. DiscussionCalled when setting a version identifier, e.g. -version=identifierparameter to the compiler orversion = Fooin user code.ParametersLoclocWhere the identifier is set const(char)[]identidentifier being checked ( ident[$] must be '\0')
- 
  Declarationdeprecated static voidaddGlobalIdent(const(char)*ident);
 static voidaddGlobalIdent(stringident);
 static voidaddGlobalIdent(const(char)[]ident);Add an user-supplied global identifier to the list DiscussionOnly called from the driver for -version=Identparameters. Will raise an error if the identifier is reserved.Parametersconst(char)*identidentifier to add 
- 
  Declarationdeprecated static voidaddPredefinedGlobalIdent(const(char)*ident);
 static voidaddPredefinedGlobalIdent(stringident);
 static voidaddPredefinedGlobalIdent(const(char)[]ident);Add any global identifier to the list, without checking if it's predefined DiscussionOnly called from the driver after platform detection, and internally. Parametersconst(char)*identidentifier to add ( ident[$] must be '\0')
- 
  Declarationthis(const ref Locloc, Modulemod, uintlevel, Identifierident);Instantiate a new VersionConditionParametersModulemodModule this node belongs to uintlevelMinimum global levelthis condition needs to pass. Only used ifidentnull.IdentifieridentIdentifier required for this condition to pass. If null, this conditiion will use an integerlevel.LoclocLocation in the source file 
 
- 
  DeclarationclassStaticIfCondition: dmd.cond.Condition;
- 
  Declarationpure nothrow @safe boolfindCondition(Identifiers*ids, Identifierident);Find identParametersIdentifiers*idsarray of identifiers Identifieridentidentifier to search for Return Valuetrueif found