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:
void foo() { ... mXPUSHs(sv); }
SV* foo() { ... return sv; }
The OP's code uses the former approach.
In reply to Re^2: Some functions in .xs file can't be found
by ikegami
in thread Some functions in .xs file can't be found
by geoffleach
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |