lua-users home
lua-l archive

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


You do need to increase the stack level, but I think that David meant
some method to make the extra stack level(s) invisible to the debug
API.

On Wed, Sep 16, 2009 at 2:14 PM, Tony Finch <dot@dotat.at> wrote:
> That isn't possible. You have to increase the stack level to save the
> nested return addresses. If the wrapper can do everything it needs before
> calling the wrapped function, then you can do a tail call so you don't
> need to save an extra return address and the stack level can remain the
> same.