lua-users home
lua-l archive

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


Roberto wrote:
> How/when are you calling lua_getlocal? Are you sure you have not filled 
> the stack?

In fact I think that I by accident requested invalid stack indices. 
At least I guess that lua_getlocal returning "(*temporary)" does mean so? 

I looped indices calling lua_getLocal beginning with 1 until it returned
null in lua 5.0.2. This is part of our debugger and is meant to display all
local variables.

The only thing is that I now don't know how to handle this correctly (beside
a rude strcmp ;-))

Sebastian