[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Wrong number of items on stack after lua_call
- From: "Curt Carpenter" <curtc@...>
- Date: Fri, 22 Jun 2001 10:11:36 -0700
Yes, that was it. I misunderstood. Thank you.
-----Original Message-----
From: Roberto Ierusalimschy [mailto:roberto@inf.puc-rio.br]
Sent: Friday, June 22, 2001 5:48 AM
To: Multiple recipients of list
Subject: Re: Wrong number of items on stack after lua_call
> 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.
-- Roberto