view tango/lib/compiler/llvmdc/eh.d @ 137:ce7b81fb957f trunk

[svn r141] fixed more problems with classinfo moved more IR state out of the AST classes
author lindquist
date Fri, 18 Jan 2008 16:42:16 +0100
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();
}