lua-users home
lua-l archive

Re: LuaJIT2 crash reporting an error in FFI metamethod

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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--

AltStyle によって変換されたページ (->オリジナル) /