http://www.perlmonks.org?node_id=1062399


in reply to Re: Some functions in .xs file can't be found
in thread Some functions in .xs file can't be found

No, it should be void. The C function doesn't return anything.

#define XSRETURN(off) \ STMT_START { \ const IV tmpXSoff = (off); \ PL_stack_sp = PL_stack_base + ax + (tmpXSoff - 1); \ return; \ } STMT_END

There are two ways of returning to Perl from an XS function:

The OP's code uses the former approach.

Replies are listed 'Best First'.
Re^3: Some functions in .xs file can't be found
by BrowserUk (Patriarch) on Nov 13, 2013 at 16:59 UTC

    Indeed. Thanks for the correction.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.