[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ Foreign Function Interface
From: |
Hans Åberg |
Subject: |
Re: C++ Foreign Function Interface |
Date: |
Fri, 11 Mar 2016 23:40:55 +0100 |
> On 11 Mar 2016, at 21:17, Arun Isaac <address@hidden> wrote:
>
> Hans Åberg <address@hidden> writes:
>
>> You will have to write it yourself. It has been discussed before on
>> this list [1].
>
> In one of the messages in the earlier thread, I found a link to
> https://isocpp.org/wiki/faq/mixing-c-and-cpp
>
> That page gives me some idea of how I can write C wrappers for my C++
> library.
When calling C++ from C, you can’t pass a C++ exception through the C code. So
in my example code, there are conversions between C++ and Guile exceptions.