in reply to Re: XS/Inline::C concat *any* two SVs.
in thread XS/Inline::C concat *any* two SVs.
Use SvOK(sv) to test for undef-ness -- then you can skip all those other tests.
Unfortunately,
if( !SvOK( sv ) )
is not equivalent to
if( !SvPOK( sv ) && ( SvNOK( sv ) || SvIOK( sv ) || SvUOK( sv ) ) +)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XS/Inline::C concat *any* two SVs.
by creamygoodness (Curate) on May 30, 2006 at 14:06 UTC | |
by BrowserUk (Patriarch) on May 30, 2006 at 15:25 UTC | |
by creamygoodness (Curate) on May 30, 2006 at 16:00 UTC | |
by BrowserUk (Patriarch) on May 30, 2006 at 17:53 UTC | |
by tye (Sage) on May 30, 2006 at 18:15 UTC | |
|