[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: debug.getlocal from within return hook
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 20 May 2015 09:51:25 -0300
> actually I found it totally unnecessary to adjust the stack top pointer.
> anyway `luaD_poscall` is doing the work of moving the return values
> to the caller's frame, whether or not a hook is called.
Currently, the stack pointer is what tells `luaD_poscall` how many
values should be returned (all values from 'firstresult' up to the top).
-- Roberto