summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-23 08:21:45 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-24 09:25:20 -0800
commitca4d40c4ce3fbba4b15475e580cd08822781239b (patch)
tree260cb245b2e0264ada9b581431eb868cafa0ec91 /toke.c
parent1b6e87415847fb00091c22c1eeb1dbd6cece377a (diff)
downloadperl-ca4d40c4ce3fbba4b15475e580cd08822781239b.tar.gz
toke.c: Add assertion to feature_is_enabled
This should now only be called by macros in feature.h when PL_hints indicates that %^H is where the features are.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index 90e0b26a2d..c6e0097fd7 100644
--- a/toke.c
+++ b/toke.c
@@ -608,6 +608,8 @@ Perl_feature_is_enabled(pTHX_ const char *const name, STRLEN namelen)
PERL_ARGS_ASSERT_FEATURE_IS_ENABLED;
+ assert(CURRENT_FEATURE_BUNDLE == FEATURE_BUNDLE_CUSTOM);
+
if (namelen > MAX_FEATURE_LEN)
return FALSE;
memcpy(&he_name[8], name, namelen);