[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: coroutine.yield from debug hook in LuaJIT 2
- From: Mike Pall <mikelu-1106@...>
- Date: Mon, 13 Jun 2011 21:26:46 +0200
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.
--Mike