lua-users home
lua-l archive

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


* 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.