lua-users home
lua-l archive

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


> 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