Catching C++ std::exception in D
Iain Buclaw via Digitalmars-d
digitalmars-d at puremagic.com
Thu Nov 12 02:08:57 PST 2015
On 12 November 2015 at 07:50, Walter Bright via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:
>
> I really appreciate the offers, and here's what will really help:
>
> Writing the druntime end of things, which is really providing just two
> functions: d_throw (d_dwarf_throw to distinguish it) and the libunwind
> personality function: __dmd_personality_v0. The tricky part with the
> personality function will likely be recognizing std::exception* exceptions.
> I wonder if forwarding the call to __gxx_personality_v0 will work.
>
>
I'll have to check, but I'm pretty certain that libunwind will call the C++
personality for you if you return `nothing found` from D personality
function.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20151112/0ae9080d/attachment.html>
More information about the Digitalmars-d
mailing list