summaryrefslogtreecommitdiff
path: root/feature.h
diff options
context:
space:
mode:
Diffstat (limited to 'feature.h')
-rw-r--r--feature.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/feature.h b/feature.h
index 0b5f85c2bc..3ce6e85f09 100644
--- a/feature.h
+++ b/feature.h
@@ -15,6 +15,10 @@
#define FEATURE_BUNDLE_515 3
#define FEATURE_BUNDLE_CUSTOM (HINT_FEATURE_MASK >> HINT_FEATURE_SHIFT)
+#define CURRENT_HINTS \
+ (PL_curcop == &PL_compiling ? PL_hints : PL_curcop->cop_hints)
+#define CURRENT_FEATURE_BUNDLE (CURRENT_HINTS >> HINT_FEATURE_SHIFT)
+
#endif /* PERL_CORE or PERL_EXT */
/* ex: set ro: */