mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-03 05:23:14 +01:00
Merge dmd-1.074 into ldc.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
// Compiler implementation of the D programming language
|
||||
// Copyright (c) 1999-2011 by Digital Mars
|
||||
// Copyright (c) 1999-2012 by Digital Mars
|
||||
// All Rights Reserved
|
||||
// written by Walter Bright
|
||||
// http://www.digitalmars.com
|
||||
@@ -36,6 +36,7 @@ struct Condition
|
||||
virtual Condition *syntaxCopy() = 0;
|
||||
virtual int include(Scope *sc, ScopeDsymbol *s) = 0;
|
||||
virtual void toCBuffer(OutBuffer *buf, HdrGenState *hgs) = 0;
|
||||
virtual DebugCondition *isDebugCondition() { return NULL; }
|
||||
};
|
||||
|
||||
struct DVCondition : Condition
|
||||
@@ -59,6 +60,7 @@ struct DebugCondition : DVCondition
|
||||
|
||||
int include(Scope *sc, ScopeDsymbol *s);
|
||||
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
|
||||
DebugCondition *isDebugCondition() { return this; }
|
||||
};
|
||||
|
||||
struct VersionCondition : DVCondition
|
||||
@@ -77,6 +79,7 @@ struct VersionCondition : DVCondition
|
||||
struct StaticIfCondition : Condition
|
||||
{
|
||||
Expression *exp;
|
||||
int nest; // limit circular dependencies
|
||||
|
||||
StaticIfCondition(Loc loc, Expression *exp);
|
||||
Condition *syntaxCopy();
|
||||
|
||||
Reference in New Issue
Block a user