summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-12-20 07:14:01 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-12-21 07:06:14 -0800
commit7143f21c482af816521c0e2affd8270cb71e7f9a (patch)
tree5871a82a102724add973657a952c715f8cd747a4 /op.h
parent0ca025e47604534f75322628e0f120cfcf8ccd2c (diff)
downloadperl-7143f21c482af816521c0e2affd8270cb71e7f9a.tar.gz
Disallow GIMME in ext/
It’s an inefficient macro, so we don’t want it inadvertently used again.
Diffstat (limited to 'op.h')
-rw-r--r--op.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.h b/op.h
index 2487ca72a8..a84a02bf69 100644
--- a/op.h
+++ b/op.h
@@ -150,7 +150,7 @@ Deprecated. Use C<GIMME_V> instead.
#define OPf_LIST OPf_WANT_LIST
#define OPf_KNOW OPf_WANT
-#ifndef PERL_CORE
+#if !defined(PERL_CORE) && !defined(PERL_EXT)
# define GIMME \
(PL_op->op_flags & OPf_WANT \
? ((PL_op->op_flags & OPf_WANT) == OPf_WANT_LIST \