Mercurial > projects > ldc
diff lphobos/internal/eh.d @ 662:88e23f8c2354
Applied downs' latest Phobos patch
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 06 Oct 2008 21:40:33 +0200 |
parents | 373489eeaf90 |
children |
line wrap: on
line diff
--- a/lphobos/internal/eh.d Mon Oct 06 21:27:29 2008 +0200 +++ b/lphobos/internal/eh.d Mon Oct 06 21:40:33 2008 +0200 @@ -287,8 +287,8 @@ action_walker += next_action_offset; } - printf("Assertion failure ;_;\n"); - assert(false); + /*printf("Assertion failure ;_;\n"); + assert(false);*/ } // These are the register numbers for SetGR that @@ -353,12 +353,14 @@ } // end of x86 Linux specific implementation +extern(C) void* malloc(size_t size); extern(C) void _d_throw_exception(Object e) { if (e !is null) { - _d_exception* exc_struct = new _d_exception; + // _d_exception* exc_struct = new _d_exception; + auto exc_struct = cast(_d_exception*)malloc(_d_exception.sizeof); exc_struct.unwind_info.exception_class[] = _d_exception_class; exc_struct.exception_object = e; printf("Raising exception\n");