in reply to [XS] Correct way to return the stack

XSRETURN(off); does (slightly more than) PL_stack_sp = PL_stack_base + ax + (off - 1);. PUTBACK; does PL_stack_sp = sp;. Yep, I think that behavior is reliable. Those are just two different ways of saying how many items from the top of the stack should be considered return values.

- tye        

Replies are listed 'Best First'.
Re^2: [XS] Correct way to return the stack (source)
by syphilis (Archbishop) on Sep 08, 2008 at 01:31 UTC
    Thanks jand, tye.
    That gives me a much clearer picture of what's really going on.

    Cheers,
    Rob