summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-03-18 13:16:17 +0100
committerYves Orton <demerphq@gmail.com>2023-03-19 05:27:01 +0800
commitb6b3bfb8b86974050b15778fdd27d1b2580ad80a (patch)
tree9f37988c8c85e03f4e22841db770f0cc37351c3c /proto.h
parentb3703faa10166966785f9e5de78ffc972823a979 (diff)
downloadperl-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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index 87ae9bde30..f58ae1277c 100644
--- a/proto.h
+++ b/proto.h
@@ -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)