Mercurial > projects > dwt-mac
comparison dwt/dwthelper/utils.d @ 61:c74ba20de292
Fix: The application responds to events now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 23 Dec 2008 00:35:24 +0100 |
parents | 198549365851 |
children | 10eaa644646f |
comparison
equal
deleted
inserted
replaced
60:62202ce0039f | 61:c74ba20de292 |
---|---|
7 public import Math = tango.math.Math; | 7 public import Math = tango.math.Math; |
8 | 8 |
9 public import tango.core.Exception : IllegalArgumentException, IOException, PlatformException; | 9 public import tango.core.Exception : IllegalArgumentException, IOException, PlatformException; |
10 | 10 |
11 import tango.io.Stdout; | 11 import tango.io.Stdout; |
12 import tango.io.Print; | 12 |
13 version (LDC) | |
14 { | |
15 import tango.io.stream.Format; | |
16 alias FormatOutput Print; | |
17 } | |
18 | |
19 else | |
20 import tango.io.Print; | |
21 | |
13 import tango.stdc.stringz; | 22 import tango.stdc.stringz; |
14 static import tango.text.Util; | 23 static import tango.text.Util; |
15 static import tango.text.Text; | 24 static import tango.text.Text; |
16 import tango.text.Unicode; | 25 import tango.text.Unicode; |
17 import tango.text.convert.Utf; | 26 import tango.text.convert.Utf; |
814 } | 823 } |
815 | 824 |
816 void ExceptionPrintStackTrace( Exception e ){ | 825 void ExceptionPrintStackTrace( Exception e ){ |
817 ExceptionPrintStackTrace( e, Stderr ); | 826 ExceptionPrintStackTrace( e, Stderr ); |
818 } | 827 } |
828 | |
819 void ExceptionPrintStackTrace( Exception e, Print!(char) print ){ | 829 void ExceptionPrintStackTrace( Exception e, Print!(char) print ){ |
820 Exception exception = e; | 830 Exception exception = e; |
821 while( exception !is null ){ | 831 while( exception !is null ){ |
822 print.formatln( "Exception in {}({}): {}", exception.file, exception.line, exception.msg ); | 832 print.formatln( "Exception in {}({}): {}", exception.file, exception.line, exception.msg ); |
823 if( exception.info !is null ){ | 833 if( exception.info !is null ){ |