On Sat, Jan 10, 2004 at 09:01:19AM +0100, Tassilo von Parseval wrote:
> Hi,
> 
> two little questions this time.
> 
> 1) When I return multiple values from an XSUB by doing a
> 
>     ST(0) = sv_newmortal(...);
>     ST(1) = sv_newmortal(...);
>     XSRETURN(2);
> 
> do I have to do a prior EXTEND(SP, 2)? Currently I am not doing it and
> it seems to work fine.

How many values are passed into the XSUB?
My understanding is that you need to ensure that the stack is large enough,
so you're probably getting away with it either because you're passed in
(at least) 2 values, or the stack is already large enough for the order
of calling you are using.

Nicholas Clark

Reply via email to