summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-03-04 20:58:28 -0700
committerKarl Williamson <khw@cpan.org>2020-03-18 17:38:19 -0600
commite0be78213ff4362a011b8be77ba8af2d5a307178 (patch)
tree6dd25442946cef9e4b512e59fcf3916cc244822a /proto.h
parent1fe1d354d323db2d8a59f107855fc1f71ddc6ab5 (diff)
downloadperl-e0be78213ff4362a011b8be77ba8af2d5a307178.tar.gz
pp_match(): output regex debugging info
This fixes #17612 This adds an inline function to pp_hot to be called to determine if debugging info should be output or not, regardless of whether it comes from -Dr, or from a 'use re Debug' statement
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index 6306918be8..543bfbd6e6 100644
--- a/proto.h
+++ b/proto.h
@@ -5520,6 +5520,14 @@ PERL_STATIC_INLINE HV* S_opmethod_stash(pTHX_ SV* meth);
#define PERL_ARGS_ASSERT_OPMETHOD_STASH \
assert(meth)
#endif
+#ifndef PERL_NO_INLINE_FUNCTIONS
+PERL_STATIC_FORCE_INLINE bool S_should_we_output_Debug_r(pTHX_ regexp * prog)
+ __attribute__warn_unused_result__
+ __attribute__always_inline__;
+#define PERL_ARGS_ASSERT_SHOULD_WE_OUTPUT_DEBUG_R \
+ assert(prog)
+#endif
+
#endif
#if defined(PERL_IN_PP_PACK_C)
STATIC int S_div128(pTHX_ SV *pnum, bool *done);