Ref.xs

filter: Statementstmt 0.0% 0 / 6 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 10 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/lib/Acme/ref.pl ↑ Summary
1 #include "EXTERN.h"
2 #include "perl.h"
3 #include "XSUB.h"
4  
5 #include "ppport.h"
6  
7  
8 MODULE = Acme::Ref PACKAGE = Acme::Ref
9  
10 SV *
11 _deref(int ref)
12 CODE:
13 0 ▶ if (ref) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref) { 0 0 0
14 0 SV *r = (SV *) ref;
15 0 ▶ if (SvTYPE(r)>0) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE(r)>0) { 0 0 0
16 0 RETVAL = newRV_inc(r);
17 }
18 else {
19 0 RETVAL = &PL_sv_undef;
20 }
21 }
22 else {
23 0 RETVAL = &PL_sv_undef;
24 }
25 OUTPUT:
26 RETVAL
« blib/lib/Acme/ref.pl ↑ Summary