diff dmd/DoStatement.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 a43c65469219
children e3afd1303184
line wrap: on
line diff
--- a/dmd/DoStatement.d	Sun Oct 10 01:55:35 2010 +0400
+++ b/dmd/DoStatement.d	Sun Oct 10 03:47:23 2010 +0400
@@ -161,7 +161,13 @@
 
     override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
 	{
-		assert(false);
+	    buf.writestring("do");
+		buf.writenl();
+		if (body_)
+			body_.toCBuffer(buf, hgs);
+		buf.writestring("while (");
+		condition.toCBuffer(buf, hgs);
+		buf.writebyte(')');
 	}
 
     override Statement inlineScan(InlineScanState* iss)