summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-01-11 11:31:34 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-01-11 11:31:34 +0000
commitccb2c8b8ab146edc148e377cd6b108da77d1320b (patch)
treeb58534185023feabf06d12fe6445ce3fbc9ebbdb /pp_ctl.c
parent52b4506763c1e322f848f17908bebdf7672f168e (diff)
downloadperl-ccb2c8b8ab146edc148e377cd6b108da77d1320b.tar.gz
Introduce macro PERL_MAX_SUB_DEPTH
p4raw-id: //depot/perl@32949
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 07f8504fb5..564e437cb5 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2427,7 +2427,7 @@ PP(pp_goto)
if (CvDEPTH(cv) < 2)
SvREFCNT_inc_simple_void_NN(cv);
else {
- if (CvDEPTH(cv) == 100 && ckWARN(WARN_RECURSION))
+ if (CvDEPTH(cv) == PERL_MAX_SUB_DEPTH && ckWARN(WARN_RECURSION))
sub_crush_depth(cv);
pad_push(padlist, CvDEPTH(cv));
}