diff options
author | Yves Orton <demerphq@gmail.com> | 2023-03-18 13:16:17 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-03-19 05:27:01 +0800 |
commit | b6b3bfb8b86974050b15778fdd27d1b2580ad80a (patch) | |
tree | 9f37988c8c85e03f4e22841db770f0cc37351c3c /proto.h | |
parent | b3703faa10166966785f9e5de78ffc972823a979 (diff) | |
download | perl-b6b3bfb8b86974050b15778fdd27d1b2580ad80a.tar.gz |
regexec.c - convert UNWIND_PAREN() into an inline static function
This makes it easier to debug, and type checks parameters and the
like. It does make it somewhat slower in debug mode, but so what.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -8915,6 +8915,11 @@ S_foldEQ_latin1_s2_folded(pTHX_ const char *a, const char *b, I32 len); # define PERL_ARGS_ASSERT_FOLDEQ_LATIN1_S2_FOLDED \ assert(a); assert(b) +PERL_STATIC_INLINE void +S_unwind_paren(pTHX_ regexp *rex, U32 lp, U32 lcp comma_pDEPTH); +# define PERL_ARGS_ASSERT_UNWIND_PAREN \ + assert(rex) + # endif /* !defined(PERL_NO_INLINE_FUNCTIONS) */ #endif /* defined(PERL_IN_REGEXEC_C) */ #if defined(PERL_IN_REGEX_ENGINE) |