RE: Am I checking for undef in the wrong way?
[email protected] (Erland Sommarskog)
| Newsgroups | perl.xs |
|---|---|
| Organization | Erland Sommarskog |
| Message-ID | <[email protected]> |
"Jan Dubois" ([email protected]) writes: > You should pass in the Perl context so it works under MULTIPLICITY (and > by extension under USE_ITHREADS): > > > #define sv_isdefined(sv) my_is_defined(aTHX_ sv) > > static BOOL > my_sv_isdefined(pTHX_ SV *sv) { > ... > } I read about MULTIPLICITY i perlguts, and as I understand it, I would only need to do the above, if I use PERL_NO_GET_CONTEXT, which I don't. Yes, I get the hint that I should if I want better performance, so I guess I should add it to the to-do list. -- Erland Sommarskog, Stockholm, [email protected]