diff dmd/CaseStatement.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 fe932c1a9563
children e3afd1303184
line wrap: on
line diff
--- a/dmd/CaseStatement.d	Sun Oct 10 01:55:35 2010 +0400
+++ b/dmd/CaseStatement.d	Sun Oct 10 03:47:23 2010 +0400
@@ -158,7 +158,11 @@
 	
     override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
 	{
-		assert(false);
+	    buf.writestring("case ");
+		exp.toCBuffer(buf, hgs);
+		buf.writebyte(':');
+		buf.writenl();
+		statement.toCBuffer(buf, hgs);
 	}
 
     override Statement inlineScan(InlineScanState* iss)