lua-users home
lua-l archive

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

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 <> wrote:
> 2011/6/8 Xavier Wang <>:
>> 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.