[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: retrieve top-level lua_State?
- From: Florian Weimer <fw@...>
- Date: Fri, 12 Jun 2009 21:27:29 +0200
* Wesley Smith:
>> Say you have function make() that calls into C and stores a userdata.
>> And function dispatch() that calls into C, and in C code, based on
>> some event, calls a method on the userdata.
>
> I understand the example, but this doesn't reflect the situation I'm
> dealing with. There is a function make() but the dispatch() is a C
> function with no lua interaction whatsoever.
Then you need to recover the Lua state from global information, either
a plain global variable, or a thread-local variable.
- References:
- retrieve top-level lua_State?, Graham Wakefield
- Re: retrieve top-level lua_State?, TNHarris
- Re: retrieve top-level lua_State?, David Burgess
- Re: retrieve top-level lua_State?, Graham Wakefield
- Re: retrieve top-level lua_State?, Florian Weimer
- Re: retrieve top-level lua_State?, David Ludwig
- Re: retrieve top-level lua_State?, Sam Roberts
- Re: retrieve top-level lua_State?, Wesley Smith
- Re: retrieve top-level lua_State?, Sam Roberts
- Re: retrieve top-level lua_State?, Wesley Smith