summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-20 18:03:27 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-20 18:03:27 +0000
commit10067d9ac787a7e27e17175ac3e209ef628b8aec (patch)
tree1ba3588a616a84416ce634ef6bf9318d01a1375b /cop.h
parent0588a1501b88b68a0cd58bf7f47f7a5bef1e3c30 (diff)
downloadperl-10067d9ac787a7e27e17175ac3e209ef628b8aec.tar.gz
Extend PUSHFORMAT() to take a second parameter to set retop, to save
NULLing it and then reassigning. p4raw-id: //depot/perl@33012
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cop.h b/cop.h
index 21aeb222fa..5c801739c5 100644
--- a/cop.h
+++ b/cop.h
@@ -322,10 +322,10 @@ struct block_sub {
cx->blk_sub.lval = 0;
-#define PUSHFORMAT(cx) \
+#define PUSHFORMAT(cx, retop) \
cx->blk_sub.cv = cv; \
cx->blk_sub.gv = gv; \
- cx->blk_sub.retop = NULL; \
+ cx->blk_sub.retop = (retop); \
cx->blk_sub.hasargs = 0; \
cx->blk_sub.dfoutgv = PL_defoutgv; \
SvREFCNT_inc_void(cx->blk_sub.dfoutgv)