Mercurial > projects > ddmd
diff dmd/TypeEnum.d @ 68:ee3a9f34dc48
final bits of codegen implementation to compile Phobos
author | korDen |
---|---|
date | Tue, 24 Aug 2010 16:44:34 +0400 |
parents | 10317f0c89a5 |
children | 2e2a5c3f943a |
line wrap: on
line diff
--- a/dmd/TypeEnum.d Mon Aug 23 21:21:05 2010 +0400 +++ b/dmd/TypeEnum.d Tue Aug 24 16:44:34 2010 +0400 @@ -19,6 +19,7 @@ import dmd.TypeInfoEnumDeclaration; import dmd.ArrayTypes; import dmd.TY; +import dmd.MOD; import dmd.Util; import dmd.backend.TYPE; @@ -84,9 +85,14 @@ buf.printf("%s", name); } - void toCBuffer2(OutBuffer buf, HdrGenState* hgs, int mod) + void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) { - assert(false); + if (mod != this.mod) + { + toCBuffer3(buf, hgs, mod); + return; + } + buf.writestring(sym.toChars()); } Expression dotExp(Scope sc, Expression e, Identifier ident)