diff options
author | Karl Williamson <khw@cpan.org> | 2020-03-04 20:58:28 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-03-18 17:38:19 -0600 |
commit | e0be78213ff4362a011b8be77ba8af2d5a307178 (patch) | |
tree | 6dd25442946cef9e4b512e59fcf3916cc244822a /proto.h | |
parent | 1fe1d354d323db2d8a59f107855fc1f71ddc6ab5 (diff) | |
download | perl-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |