summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorBen Morrow <ben@morrow.me.uk>2009-12-07 11:52:23 +0000
committerRafael Garcia-Suarez <rgs@consttype.org>2010-07-12 10:40:47 +0200
commit52db365a88f7ab3b9b091f983a05054164499982 (patch)
treeb4c8cfb606ca59bff9d00fd9263e797771fb5e3e /pp_ctl.c
parent03569ecfc8c82939dcc47b586a8e22c613c158b2 (diff)
downloadperl-52db365a88f7ab3b9b091f983a05054164499982.tar.gz
Macroify the block_hooks structure.
Add a flags member, so it can be extended later if necessary. Add a bhk_eval member, called from doeval to catch requires and string evals.
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 912e934e01..1bac360f28 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3131,6 +3131,8 @@ S_doeval(pTHX_ int gimme, OP** startop, CV* outside, U32 seq)
else
CLEAR_ERRSV();
+ CALL_BLOCK_HOOKS(eval, saveop);
+
/* note that yyparse() may raise an exception, e.g. C<BEGIN{die}>,
* so honour CATCH_GET and trap it here if necessary */