never tests true andif(valuesv == &sv_undef)
tests true when valuesv is undef - of course. What I'm not sure is what the original author might have meant by the first test above - perhaps it should have been SvOK in which case it was bug, perhaps something else.!SvOK(valuesv)
In reply to Re^2: testing for undef in perl XS code (in DBD::ODBC)
by mje
in thread testing for undef in perl XS code (in DBD::ODBC)
by mje
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |