| 1 |
|
| #include "EXTERN.h" |
| 2 |
|
| #include "perl.h" |
| 3 |
|
| #include "embed.h" |
| 4 |
|
| #include "XSUB.h" |
| 5 |
|
| |
| 6 |
|
| /* a much dumber version of entersub */ |
| 7 |
0 |
| OP *pp_simple_xsub(pTHX) |
| 8 |
|
| { |
| 9 |
0 |
| dSP; dPOPss; |
| 10 |
0 |
| register CV *cv = GvCV(sv); |
| 11 |
|
| |
| 12 |
0 |
| PUTBACK; |
| 13 |
|
| |
| 14 |
0 |
| (void)(*CvXSUB(cv))(aTHX_ cv); |
| 15 |
|
| |
| 16 |
0 |
| return NORMAL; |
| 17 |
|
| } |
| 18 |
|
| |
| 19 |
|
| MODULE = B::XSUB::Dumber PACKAGE = B::XSUB::Dumber |
| 20 |
|
| |
| 21 |
|
| I32 |
| 22 |
|
| simple_xsub_ppaddr() |
| 23 |
|
| CODE: |
| 24 |
0 |
▶ | RETVAL = (I32)&pp_simple_xsub; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (I32)&pp_simple_xsub; |
0 |
0 |
0 |
|
| 25 |
|
| OUTPUT: RETVAL |
| 26 |
|
| |
| 27 |
|
| |
| 28 |
|
| |