diff options
author | Ben Morrow <ben@morrow.me.uk> | 2009-12-07 12:55:57 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2010-07-12 10:40:47 +0200 |
commit | bb6c22e795117e6d984471c0be74c8b3302b3b9a (patch) | |
tree | e4fd879b498c3df488403078ee2a97e48ec7ca5e /op.c | |
parent | 52db365a88f7ab3b9b091f983a05054164499982 (diff) | |
download | perl-bb6c22e795117e6d984471c0be74c8b3302b3b9a.tar.gz |
Wrap PL_blockhooks in an API function.
This should help prevent people from thinking they can get cute with the
contents.
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2343,6 +2343,14 @@ Perl_block_end(pTHX_ I32 floor, OP *seq) return retval; } +void +Perl_blockhook_register(pTHX_ BHK *hk) +{ + PERL_ARGS_ASSERT_BLOCKHOOK_REGISTER; + + Perl_av_create_and_push(aTHX_ &PL_blockhooks, newSViv(PTR2IV(hk))); +} + STATIC OP * S_newDEFSVOP(pTHX) { |