diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-12-23 08:21:45 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-12-24 09:25:20 -0800 |
commit | ca4d40c4ce3fbba4b15475e580cd08822781239b (patch) | |
tree | 260cb245b2e0264ada9b581431eb868cafa0ec91 /toke.c | |
parent | 1b6e87415847fb00091c22c1eeb1dbd6cece377a (diff) | |
download | perl-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |