lua-users home
lua-l archive

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

2015-02-13 20:44 GMT+08:00 Roberto Ierusalimschy <>:
> I try to fix it, but maybe there is a better solution :)

Maybe this one?

This would be better. :) 

ps, Could you add the ability of yielding to the debug hook lua api in future ?
(for example, if a lua hook function returns true, we call lua_yield(L,0) in C hook )
It raise an error "attempt to yield across a C-call boundary", when calling coroutine.yield() in a lua hook function now.
This will be very useful to implement a debugger or a preemptive scheduler.