| 1 |
|
| #include "EXTERN.h" |
| 2 |
|
| #include "perl.h" |
| 3 |
|
| #include "XSUB.h" |
| 4 |
|
| |
| 5 |
|
| STATIC SV *compiling_sv; |
| 6 |
|
| |
| 7 |
|
| MODULE = B::Compiling PACKAGE = B::Compiling |
| 8 |
|
| |
| 9 |
|
| PROTOTYPES: DISABLE |
| 10 |
|
| |
| 11 |
|
| void |
| 12 |
|
| PL_compiling () |
| 13 |
|
| PPCODE: |
| 14 |
2 |
▶ | XPUSHs (compiling_sv); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs (compiling_sv); |
0 |
2 |
2 |
|
| 15 |
|
| |
| 16 |
|
| BOOT: |
| 17 |
|
| { |
| 18 |
2 |
| HV *cop_stash = gv_stashpv ("B::COP", 0); |
| 19 |
|
| |
| 20 |
2 |
▶ | if (!cop_stash) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!cop_stash) { |
0 |
2 |
2 |
|
| 21 |
0 |
| croak ("B doesn't provide B::COP"); |
| 22 |
|
| } |
| 23 |
|
| |
| 24 |
2 |
| compiling_sv = newRV_noinc (newSViv (PTR2IV (&PL_compiling))); |
| 25 |
2 |
| sv_bless (compiling_sv, cop_stash); |
| 26 |
|
| } |