hax/sv_setrv.c.inc

filter: Statementstmt 0.0% 0 / 5 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 5 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/lib/XS/Parse/Sublike/Builder.pm ↑ Summary hax/lexer-additions.c.inc »
1 /* vi: set ft=c : */
2  
3 #ifndef sv_setrv_noinc
4 # define sv_setrv_noinc(sv, rv) S_sv_setrv(aTHX_ sv, rv)
5 # define sv_setrv_inc(sv, rv) S_sv_setrv(aTHX_ sv, SvREFCNT_inc(rv))
6 #endif
7  
8 0 static void S_sv_setrv(pTHX_ SV *sv, SV *rv)
9 {
10 0 SV *tmp = newRV_noinc(rv);
11 0 sv_setsv(sv, tmp);
12 0 SvREFCNT_dec(tmp);
13 0 }
« blib/lib/XS/Parse/Sublike/Builder.pm ↑ Summary hax/lexer-additions.c.inc »