Re: Using a cl_object in Lisp

2018-07-28 Thread Stewart M.
To clarify, the issue is not with C++, which I am successfully wrapping with C. The actual issue is using the c_object type in Lisp--if it comes back as a CFFI pointer, how can I use it in Lisp as a Lisp object? Is there something like: (ffi:pointer-to-lisp-object ptr) -- Stewart Milberger K

Using a cl_object in Lisp

2018-07-28 Thread Stewart M.
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