[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: embedded lua in web based REPL
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sun, 21 Mar 2010 11:40:25 -0300
> I'm not following. You're saying I can't use coroutine.yield() from a
> Lua hook function, but I can use its equivalent from a C hook
> function?
Yes.
Note that the hook system does not use "Lua functions", but a special
kind of C function (lua_Hook). The Lua debug library uses a standard
lua_Hook function that calls your Lua function, and this call is not
yieldable.
-- Roberto