[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Qt and Lua and FFI (was: Re: LuaJIT2 crash reporting an error in FFI metamethod)
- From: Michal Kottman <k0mpjut0r@...>
- Date: Mon, 12 Mar 2012 17:33:05 +0100
On 12 March 2012 17:20, Janis Britals <jbritals@xs4all.nl> wrote:
> I've done this for my Qt bindings using standard Lua C API and placement new
> (where needed), and it works pretty smoothly, although I agree about the
> things getting quite complex.
Do you mean creating new Lua userdata and then using the placement new
operator on the Lua-allocated memory? How does it work with the Qt
parent-child memory management, when child objects are deleted along
with parent objects? How did you implement the delete operator, so it
does not mess up Lua memory?