Created
June 24, 2020 17:40
-
-
Save exodist/e7f7bcce3d015a371433155d6bb6d481 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Perl_ppaddr_t orig_subhandler; | |
static OP* my_subhandler(pTHX) { | |
OP* out = orig_subhandler(aTHX); | |
char *file = CopFILE(cCOPx(out)); | |
printf("xxx %s\n", file); | |
return out; | |
} | |
[...] | |
BOOT: | |
{ | |
MY_CXT_INIT; | |
orig_subhandler = PL_ppaddr[OP_ENTERSUB]; | |
PL_ppaddr[OP_ENTERSUB] = my_subhandler; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment