summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-12-18 22:09:58 +0000
committerDavid Mitchell <davem@iabyn.com>2016-02-03 09:18:36 +0000
commit6fb05a88b585ff8c2ecf0a3f089acceca1bae5b7 (patch)
tree0bde80eadc627bdb1e327670e4307cf2930914e0 /cop.h
parentdbf345cf84e095f8e3db260cb18b8a3203c12745 (diff)
downloadperl-6fb05a88b585ff8c2ecf0a3f089acceca1bae5b7.tar.gz
give POP_SAVEARRAY() macro a cx arg
rather than just assuming that there's a 'cx' var in scope
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 347e20e3f0..ef86f4f2f4 100644
--- a/cop.h
+++ b/cop.h
@@ -647,7 +647,7 @@ struct block_format {
SvREFCNT_inc_void(cx->blk_format.dfoutgv)
/* Restore old @_ */
-#define POP_SAVEARRAY() \
+#define POP_SAVEARRAY(cx) \
STMT_START { \
AV *av = GvAV(PL_defgv); \
GvAV(PL_defgv) = cx->blk_sub.savearray; \
@@ -686,7 +686,7 @@ struct block_format {
assert(AvARRAY(MUTABLE_AV( \
PadlistARRAY(CvPADLIST(cx->blk_sub.cv))[ \
CvDEPTH(cx->blk_sub.cv)])) == PL_curpad); \
- POP_SAVEARRAY(); \
+ POP_SAVEARRAY(cx); \
av = MUTABLE_AV(PAD_SVl(0)); \
if (UNLIKELY(AvREAL(av))) \
/* abandon @_ if it got reified */ \