lua-users home
lua-l archive

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


> 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