diff dmd/CompoundStatement.d @ 93:df6d0f967680

implemented a whole bunch of methods to make phobos 2.035 compile and some additional ones I came across
author Trass3r
date Mon, 30 Aug 2010 22:50:30 +0200
parents 43073c7c7769
children e28b18c23469
line wrap: on
line diff
--- a/dmd/CompoundStatement.d	Mon Aug 30 23:43:38 2010 +0400
+++ b/dmd/CompoundStatement.d	Mon Aug 30 22:50:30 2010 +0200
@@ -62,9 +62,13 @@
 		return new CompoundStatement(loc, a);
 	}
 	
-    override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
+	override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
 	{
-		assert(false);
+		for (int i = 0; i < statements.dim; i++)
+		{   Statement s = cast(Statement) statements.data[i];
+			if (s)
+				s.toCBuffer(buf, hgs);
+		}
 	}
 	
 	static int indent = 0;