Mercurial > projects > ddmd
diff dmd/Catch.d @ 174:af724d3510d7
lot os toCBuffer methods implemented
moved shared Type.* stuff into Global
author | korDen |
---|---|
date | Sun, 10 Oct 2010 03:47:23 +0400 |
parents | e28b18c23469 |
children | e3afd1303184 |
line wrap: on
line diff
--- a/dmd/Catch.d Sun Oct 10 01:55:35 2010 +0400 +++ b/dmd/Catch.d Sun Oct 10 03:47:23 2010 +0400 @@ -85,6 +85,19 @@ void toCBuffer(OutBuffer buf, HdrGenState* hgs) { - assert(false); + buf.writestring("catch"); + if (type) + { + buf.writebyte('('); + type.toCBuffer(buf, ident, hgs); + buf.writebyte(')'); + } + buf.writenl(); + buf.writebyte('{'); + buf.writenl(); + if (handler) + handler.toCBuffer(buf, hgs); + buf.writebyte('}'); + buf.writenl(); } } \ No newline at end of file