view tango/lib/compiler/llvmdc/eh.d @ 271:1e6e2b5d5bfe trunk

[svn r292] Fixed: string switch was broken in several ways. Fixed: TypeInfo_Typedef.next was incorrect (return base of base instead of just base). Fixed: ClassInfo offset type info (offTi) had invalid offsets.
author lindquist
date Wed, 18 Jun 2008 21:31:05 +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();
}