[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Co routine local data / best practices
- From: Duncan Cross <duncan.cross@...>
- Date: Wed, 2 Dec 2009 09:57:50 +0000
On Tue, Dec 1, 2009 at 11:07 PM, Chris Gagnon <cgagnon@zindagigames.com> wrote:
> I don't understand why the c api dosn't support:
> lua_pushthread(L, LThread)
> but i'm not out to change lua so this is only a curiosity.
I've wondered this too, but it's only one extra step to get what you want:
lua_pushthread(LThread);
lua_xmove(LThread, L, 1);
-Duncan