Hello Marius,
This was very helpful, thank you!
> Hi Stewart,
>
> cl_object's are declared as :object type in ECL's ffi, so
>
> (ffi:def-function "getObject" ((lo :pointer-void)) :returning :object)
> (ffi:def-function "setObject" ((lo :pointer-void) (clo :object)))
>
> should work. CFF
I found a link to a similar question:
https://stackoverflow.com/questions/44494613/embeddable-common-lisp-ecl-load-shared-library-with-extension-functions
I was looking for a more direct way.
--
Stewart Milberger
Kavalogic, Inc.
Kavalogic, Inc.
‐‐‐ Original Message ‐‐‐
On July 28, 2018 2:46 PM, Stewart M. wrote:
> I am using CFFI with ECL to interface to a C++ library, which has a C++ class
> with a data member of type 'cl_object'. Simplified, my C++ code is:
>
> class LispO
I am using CFFI with ECL to interface to a C++ library, which has a C++ class
with a data member of type 'cl_object'. Simplified, my C++ code is:
class LispObject
{
public:
cl_object object;
};
extern "C" cl_object getObject(LispObject* lo) { return lo->object; }
extern "C" void