lua-users home
lua-l archive

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

Hi Dong,

On Wed, May 15, 2013 at 7:44 PM, Dong Feng <> wrote:
> In GCTM(), there are two invocations to "setobj2s()", and then the
> L->top is increased by 2. I have not found any code to guarantee the
> remaining space of the top is enough before this increase. Is there
> any ground rule for this kind of stack management or I just missed
> anything?

It's been said on the list before that the internals of Lua make some
(safe) assumptions about the stack having a few free slots available
for these types of manipulations.

- Patrick Donnelly