Mercurial > projects > ldc
comparison tango/lib/compiler/llvmdc/eh.d @ 133:44a95ac7368a trunk
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
In particular, assertions has been fixed to include file/line info, and much more!
author | lindquist |
---|---|
date | Mon, 14 Jan 2008 05:11:54 +0100 |
parents | |
children | 8d98e42ece93 |
comparison
equal
deleted
inserted
replaced
132:1700239cab2e | 133:44a95ac7368a |
---|---|
1 /* | |
2 * Temporary exception handling stubs | |
3 */ | |
4 | |
5 import util.console; | |
6 | |
7 private extern(C) void abort(); | |
8 | |
9 extern(C) void _d_throw_exception(Object e) | |
10 { | |
11 console("Exception: "); | |
12 if (e !is null) | |
13 { | |
14 console(e.toString())("\n"); | |
15 } | |
16 abort(); | |
17 } |