summaryrefslogtreecommitdiff
path: root/warnings.pl
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2006-05-10 01:32:10 +0000
committerDave Mitchell <davem@fdisolutions.com>2006-05-10 01:32:10 +0000
commit5f2d99664d8a6923d24892ffc0569f4e03e22edd (patch)
tree9d91bd681577184ff755bb9e9978f9a4bea8644d /warnings.pl
parent262cbcdb563b9a037afe19e3ef94322ccc35436a (diff)
downloadperl-5f2d99664d8a6923d24892ffc0569f4e03e22edd.tar.gz
disable WARN and DIE hooks during constant folding
p4raw-id: //depot/perl@28148
Diffstat (limited to 'warnings.pl')
-rw-r--r--warnings.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/warnings.pl b/warnings.pl
index 853a04a1a7..0cb5bbd660 100644
--- a/warnings.pl
+++ b/warnings.pl
@@ -282,6 +282,9 @@ print WARN <<'EOM' ;
#define specialWARN(x) ((x) == pWARN_STD || (x) == pWARN_ALL || \
(x) == pWARN_NONE)
+
+/* if PL_warnhook is set to this value, then warnings die */
+#define PERL_WARNHOOK_FATAL (((SV*)0) + 1)
EOM
my $offset = 0 ;