summaryrefslogtreecommitdiff
path: root/scope.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-12-01 00:02:17 +0000
committerNicholas Clark <nick@ccl4.org>2008-12-01 00:02:17 +0000
commitdfcd3de5defffbf214d60b8322b79ded8e367fd3 (patch)
tree9063a32f6027b52c6eeb29cfdf82240579d0668c /scope.h
parent1409bc0658469580630ba458c85fe9cc3cb2d78c (diff)
downloadperl-dfcd3de5defffbf214d60b8322b79ded8e367fd3.tar.gz
Expose save_pushptrptr() and implement SAVESWITCHSTACK() with it.
p4raw-id: //depot/perl@34960
Diffstat (limited to 'scope.h')
-rw-r--r--scope.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/scope.h b/scope.h
index 6eddb19422..fc639afed0 100644
--- a/scope.h
+++ b/scope.h
@@ -178,10 +178,7 @@ Closing bracket on a callback. See C<ENTER> and L<perlcall>.
#define SAVESWITCHSTACK(f,t) \
STMT_START { \
- SSCHECK(3); \
- SSPUSHPTR(MUTABLE_SV(f)); \
- SSPUSHPTR(MUTABLE_SV(t)); \
- SSPUSHINT(SAVEt_SAVESWITCHSTACK); \
+ save_pushptrptr(MUTABLE_SV(f), MUTABLE_SV(t), SAVEt_SAVESWITCHSTACK); \
SWITCHSTACK((f),(t)); \
PL_curstackinfo->si_stack = (t); \
} STMT_END