summaryrefslogtreecommitdiff
path: root/pp.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-12-05 23:53:12 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-12-05 23:53:12 +0000
commit56370e9f11602e6539affc6db0d7eabafd518796 (patch)
tree196c4a02389d3d2ee79c43914fb9e1fd5ccf4c9d /pp.h
parent00387047e0e6654d178e5a9cdcf2128fa41c1aac (diff)
downloadperl-56370e9f11602e6539affc6db0d7eabafd518796.tar.gz
Add TOPm1s to peek at the second topmost stack item.
p4raw-id: //depot/perl@8006
Diffstat (limited to 'pp.h')
-rw-r--r--pp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pp.h b/pp.h
index 2226c20a6a..5e531dada6 100644
--- a/pp.h
+++ b/pp.h
@@ -126,6 +126,7 @@ Pops a long off the stack.
#endif
#define TOPs (*sp)
+#define TOPm1s (*(sp-1))
#define TOPp (SvPV(TOPs, PL_na)) /* deprecated */
#define TOPpx (SvPV(TOPs, n_a))
#define TOPn (SvNV(TOPs))