diff run/bug_20041226_C.d @ 678:f9e1d827a255

div. fixes
author thomask
date Wed, 21 Sep 2005 21:15:30 +0000
parents ae135d48d8b5
children 52c9e86b6486
line wrap: on
line diff
--- a/run/bug_20041226_C.d	Tue Sep 20 09:01:37 2005 +0000
+++ b/run/bug_20041226_C.d	Wed Sep 21 21:15:30 2005 +0000
@@ -9,11 +9,7 @@
 
 module dstress.run.bug_20041226_C;
 
-version(none){
-	import std.stdio;
-}else{
-	void writefln(...){
-	}
+void dummy(...){
 }
 
 struct vec3{
@@ -51,7 +47,7 @@
 void extractTriangles(GeomObject geomObj){
 	void foobar(){
 		try{
-			writefln("name: ", geomObj.name);
+			dummy("name: ", geomObj.name);
 
 			return;  // avoid accessing the array with 0 elements in the next line			
 			geomObj.mesh.faces[0].a - geomObj.xlate;  // when this line is removed, the bug doesn't appear
@@ -68,12 +64,13 @@
 		AseLoader al = new AseLoader;
 	
 		foreach(GeomObject go; al.geomObjects){
-			writefln("processing ", go.name);
+			dummy("processing ", go.name);
 			extractTriangles(go);
 		}
 	}catch(Object err){
-		writefln("Exception caught:", err);
+		dummy("Exception caught:", err);
 	}
 	
 	return 0;
 }
+