[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: retrieve top-level lua_State?
- From: TNHarris <telliamed@...>
- Date: Fri, 5 Jun 2009 17:47:34 -0400
On Thu, 4 Jun 2009 17:30:10 -0700
Graham Wakefield <lists@grahamwakefield.net> wrote:
>
> Just wondering if any lua guru can suggest a way I might retrieve the
> top-level lua_State pointer in a module's C function.
>
The global state keeps a pointer to mainthread. So G(L)->mainthread.
-- tom
telliamed@whoopdedo.org