[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: How do I add a "local" using the c api
- From: "Tom Miles" <Tom@...>
- Date: Tue, 31 Mar 2009 14:55:25 +0100
> > What I want to do is add a "local" variable in C, for a lua script
to
> access.
>
> You can send those declarations before loading the script: use a
custom
> lua_Reader.
lua_Readers? (*shudder*), fortunately I've avoided the need to use those
so far - the docs confused me no end! :)
The problem is that the values I set can only be retrieved from my c
code. The example I used was a really trivial one, the actual values
will generally be "lunar" wrapped c++ class instance user data (although
not exclusively).