diff dbg/CallStackInfo.d @ 79:43073c7c7769

updated to 2.035 also implemented a few missing functions still crashes in Import.importAll though
author Trass3r
date Mon, 30 Aug 2010 03:57:51 +0200
parents 7e0d548de9e6
children a4c9de8e39b3
line wrap: on
line diff
--- a/dbg/CallStackInfo.d	Sun Aug 29 14:39:08 2010 +0100
+++ b/dbg/CallStackInfo.d	Mon Aug 30 03:57:51 2010 +0200
@@ -61,7 +61,8 @@
 	Throwable error;
 	StackFrameInfo[] frames;
 
-	string toString() {
+	override string toString()
+	{
 		string text;
 		
 		if (error !is null) {	
@@ -70,8 +71,10 @@
 		
 		text ~= "Stack trace:\n------------------\n";
 		char buffer[128];
-		foreach(ref frame; frames) {
-			with(frame.fileLine) if(line) {
+		foreach(ref frame; frames)
+		{
+			with(frame.fileLine) if(line)
+			{
 				auto len = snprintf(buffer.ptr, buffer.length, "%u", line);
 				text ~= file ~ ":" ~ buffer[0 .. len] ~ "\r\n";
 			}
@@ -82,7 +85,8 @@
 		return text;
 	}
 	
-	void dump() {
+	void dump()
+	{
 		if (error !is null) {	
 			printf("%.*s\n", error.toString());
 		}