in reply to Passing undef to XSUB
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing undef to XSUB
by ikegami (Patriarch) on May 07, 2008 at 22:50 UTC | |
by syphilis (Archbishop) on May 08, 2008 at 00:49 UTC | |
by ikegami (Patriarch) on May 08, 2008 at 05:00 UTC | |
by syphilis (Archbishop) on May 08, 2008 at 07:32 UTC | |
by kyle (Abbot) on May 08, 2008 at 04:39 UTC | |
by syphilis (Archbishop) on May 08, 2008 at 07:57 UTC | |
by educated_foo (Vicar) on May 07, 2008 at 23:29 UTC | |
by ikegami (Patriarch) on May 07, 2008 at 23:31 UTC |