[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua stack size question
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 5 Jun 1999 14:04:45 -0300 (EST)
>From lua-l@tecgraf.puc-rio.br Sat Jun 5 12:42:30 1999
>From: erik@hougaard.com
>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.
--lhf