[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Wrong number of items on stack after lua_call
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 22 Jun 2001 09:48:14 -0300
> but sometimes when the lua function (which is a true lua function, not a
> registered C function) returns with no return values, I call lua_gettop and
> it returns 1.
Just to check: are you sure this number were not on the stack *before* you
called the function? `lua_call' does not clear the stack; it removes only
the function itself and its arguments.