[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Getting locals in C++
- From: Javier Guerra <javier@...>
- Date: Thu, 4 Jun 2009 21:32:57 -0500
Martin, Marcus wrote:
> function Main(instance)
> local fid = 17
> Can I get at the value of the above local variable from within the InvokeCMethod (in C code)? How would I do that?
besides checking the Lua internals, note that if that were a Lua function, it wouldn't be able to access locals either. Doing something different in C is straining the contract between caller and callee, at the very least.