]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - indirect.xs
Make indirect play nice with Devel::CallParser
[perl/modules/indirect.git] / indirect.xs
index 4091cf31b0729b4ffc58457d6e4d8d01ded5b8f7..4f7ac3a9721c19e5abd772d107920c3eb52fa419 100644 (file)
@@ -394,6 +394,11 @@ STATIC SV *indirect_hint(pTHX) {
  if (IN_PERL_RUNTIME)
   return NULL;
 
+#if I_HAS_PERL(5, 10, 0) || defined(PL_parser)
+ if (!PL_parser)
+  return NULL;
+#endif
+
 #ifdef cop_hints_fetch_pvn
  hint = cop_hints_fetch_pvn(PL_curcop, __PACKAGE__, __PACKAGE_LEN__,
                                                               indirect_hash, 0);