Mercurial > projects > ddmd
diff dmd/TypeTypedef.d @ 67:f708f0452e81
some of the backend/codegen stuff implemented
author | korDen |
---|---|
date | Mon, 23 Aug 2010 21:21:05 +0400 |
parents | 4290d870944a |
children | 2e2a5c3f943a |
line wrap: on
line diff
--- a/dmd/TypeTypedef.d Mon Aug 23 20:38:30 2010 +0400 +++ b/dmd/TypeTypedef.d Mon Aug 23 21:21:05 2010 +0400 @@ -81,7 +81,14 @@ void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) { - assert(false); + //printf("TypeTypedef.toCBuffer2() '%s'\n", sym.toChars()); + if (mod != this.mod) + { + toCBuffer3(buf, hgs, mod); + return; + } + + buf.writestring(sym.toChars()); } Expression dotExp(Scope sc, Expression e, Identifier ident)