summaryrefslogtreecommitdiff
path: root/cv.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-09-15 15:53:31 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-09-15 16:47:50 -0700
commitb7acb0a30ed43df67095edb94273785a03b4d989 (patch)
tree9d16f30ff26b773f5013ac60e666dd81f4544187 /cv.h
parent0c028dca83ca08aba6b78a65e979163e4a779bf8 (diff)
downloadperl-b7acb0a30ed43df67095edb94273785a03b4d989.tar.gz
Stop undef &foo from temporarily anonymising
Instead of setting aside the name, calling cv_undef, and then naming the sub anew, just pass a flag to tell cv_undef not to unname it.
Diffstat (limited to 'cv.h')
-rw-r--r--cv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cv.h b/cv.h
index c1f4456e11..8ba1c5cbeb 100644
--- a/cv.h
+++ b/cv.h
@@ -270,6 +270,10 @@ typedef OP *(*Perl_call_checker)(pTHX_ OP *, GV *, SV *);
#define CALL_CHECKER_REQUIRE_GV MGf_REQUIRE_GV
+#ifdef PERL_CORE
+# define CV_UNDEF_KEEP_NAME 1
+#endif
+
/*
* Local variables:
* c-indentation-style: bsd