summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2021-02-05 01:18:01 +0000
committerPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2021-02-14 13:40:49 +0000
commit656489102eb44a763e82ae9961a7097021182677 (patch)
treeb3178c98027b1478eab264867e1dd624470eca83 /proto.h
parentab2bb8aa34c9c9d6912e7103eba65d0a722bc93d (diff)
downloadperl-656489102eb44a763e82ae9961a7097021182677.tar.gz
Add a newTRYCATCHOP(); migrate the custom code out of perly.y into it
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 29385e45fb..d29b60057e 100644
--- a/proto.h
+++ b/proto.h
@@ -2483,6 +2483,11 @@ PERL_CALLCONV SV* Perl_newSVuv(pTHX_ const UV u)
__attribute__warn_unused_result__;
#define PERL_ARGS_ASSERT_NEWSVUV
+PERL_CALLCONV OP* Perl_newTRYCATCHOP(pTHX_ I32 flags, OP* tryblock, OP *catchvar, OP* catchblock)
+ __attribute__warn_unused_result__;
+#define PERL_ARGS_ASSERT_NEWTRYCATCHOP \
+ assert(tryblock); assert(catchvar); assert(catchblock)
+
PERL_CALLCONV OP* Perl_newUNOP(pTHX_ I32 type, I32 flags, OP* first)
__attribute__warn_unused_result__;
#define PERL_ARGS_ASSERT_NEWUNOP