lua-users home
lua-l archive

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

Yes, that was it. I misunderstood. Thank you. 

-----Original Message-----
From: Roberto Ierusalimschy [] 
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