lua-users home
lua-l archive

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


great work Peter, thanks for the nice blog post :)

2011/6/9 Peter Cawley <lua@corsix.org>:
> On Wed, Jun 8, 2011 at 5:40 PM, Fabio Kaminski <fabiokaminski@gmail.com> 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
>
>