[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [LuaJIT] Where can I ask help for LuaJIT ffi related problems?
- From: Fabio Kaminski <fabiokaminski@...>
- Date: Wed, 8 Jun 2011 13:40:05 -0300
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)
dont know of lua api function to get current state(anybody?).. so if
it its not possible to get the current state..
then you will have to start your app from C.. and control "your" own
state (thats not bad.. even a good practice of app isolation but
requires more work)
if is possible to get current lua_State and pass it as parameter
things get lot cheaper (in LOC)
On Wed, Jun 8, 2011 at 1:12 PM, steve donovan <email@example.com> wrote:
> 2011/6/8 Xavier Wang <firstname.lastname@example.org>:
>> Sometimes I think that, maybe do that in C will better:)
> You're not the only one ;) You have to know both C and Lua well to
> get non-trivial things going, but the pay-off is good.
> For those with Windows and no C compiler, who are eager to join the
> fun: I've posted a snapshot of LuaJIT compiled with mingw32:
> This isn't LfW compatible, BTW. If there's interest I'll build a
> version that can be a drop-in replacement for Lua for Windows Lua 5.1
> (although be aware that some libraries like Lanes and IUP won't work
> with their current versions.)
> steve d.