int foo(a,b) SV * a SV * b PREINIT: int aa, bb; CODE: aa = SvIOK(a) ? SvIV(a) : -1; bb = SvIOK(b) ? SvIV(b) : -1; RETVAL = aa * bb; OUTPUT: RETVAL
In reply to Re: Passing undef to XSUB
by educated_foo
in thread Passing undef to XSUB
by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |