[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT2 crash reporting an error in FFI metamethod
- From: Leo Razoumov <slonik.az@...>
- Date: Fri, 9 Mar 2012 15:37:12 -0500
On Fri, Mar 9, 2012 at 13:05, Janis Britals <jbritals@xs4all.nl> wrote:
>
> I'm switching my current Qt Lua bindings to LuaJIT's FFI and am amazed at
> how well it works. I can throw out loads of C++ binding code and replace
> them with small and elegant Lua chunks.
>
I am curious how do you access data members in C++ classes with
virtual methods by means of FFI? Due to presence of virtual table
memory layout of such objects is different from C struct POD that FFI
expects.
--Leo--