lua-users home
lua-l archive

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

>From Sat Jun  5 12:42:30 1999

>What the correct way to find out the number of aruments a
>function retuns.
>This is in C and is when I'm doing a lua_callfunction from C and
>wants to pop the returned values of the stack but if i just call
>lua_pop and there is no more on the stack a error is generated.

Call lua_getresult until it returns LUA_NOBJECT.