Mercurial > projects > ldc
view tango/lib/compiler/llvmdc/eh.d @ 185:89e21eeaf4c4 trunk
[svn r201] Fixed: return statement could fail codegen with type mismatch for classes, added cast.
author | lindquist |
---|---|
date | Wed, 07 May 2008 22:27:45 +0200 |
parents | 44a95ac7368a |
children | 8d98e42ece93 |
line wrap: on
line source
/* * Temporary exception handling stubs */ import util.console; private extern(C) void abort(); extern(C) void _d_throw_exception(Object e) { console("Exception: "); if (e !is null) { console(e.toString())("\n"); } abort(); }