lua-users home
lua-l archive

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

> 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