[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [LuaJIT] Where can I ask help for LuaJIT ffi related problems?
- From: CrazyButcher <crazybutcher@...>
- Date: Thu, 9 Jun 2011 08:20:52 +0200
great work Peter, thanks for the nice blog post :)
2011/6/9 Peter Cawley <[email protected]>:
> On Wed, Jun 8, 2011 at 5:40 PM, Fabio Kaminski <[email protected]> wrote:
>> in the case of callbacks for now, you must write c code.. and you must
>> have the lua_State handle to pop out the function from the stack..
>> (and consequently..the other args)
>
> As my earlier example showed, you do not *need* to write C code or use
> a lua_State handle. I've extended my earlier code to support x64 as
> well as x86, and also put rather more commentary with it:
> http://www.corsix.org/content/callbacks-luajit-ffi
>
>