in reply to XS: SvOK ? SvPV_nolen : NULL
Where you can implicitly force the SvOK check in Perl-land. Though, this would simply move the ternary into Perl rather than in the XS; maybe what you are looking for.# Assuming this is within the *.pm package, and you are # only allowing a single parameter # as (what looks to be) defined in your XS c_func( ( ( defined( $_[0] ) ) ? $_[0] : '' ) );
|
|---|