lua-users home
lua-l archive

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

Greg wrote:
> This makes sense.  Where I am running into problems is with:
> debug.setlocal ([thread,] level, local, value)
> I'm assuming this doesn't have thread level control in LuaJIT 2.  I want
> to set a local variable for a corroutine but I can only seem to 
> reference the main thread.

Umm, this has no relation to hooks and ought to work just fine.
But note that you should use this call only for debugging.