summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2019-09-17 15:28:51 +0100
committerDavid Mitchell <davem@iabyn.com>2019-09-19 08:42:46 +0100
commit91c3b9cb4c0600d1f8d6862715179da11a4864c6 (patch)
tree89dcf978def55e2eb9dc994e8adc622795c680e1 /pp_ctl.c
parent740449bf2292b54e1824f48789ef1a15877469d5 (diff)
downloadperl-91c3b9cb4c0600d1f8d6862715179da11a4864c6.tar.gz
add Perl_gimme_V() static inline fn for GIMME_V
This function makes use of PL_curstackinfo->si_cxsubix to avoid the overhead of a call to block_gimme() when the context of the op is unknown.
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index ef1ff8dd40..af95a9e50b 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1389,6 +1389,8 @@ Perl_dowantarray(pTHX)
return (gimme == G_VOID) ? G_SCALAR : gimme;
}
+/* note that this function has mostly been superseded by Perl_gimme_V */
+
U8
Perl_block_gimme(pTHX)
{