summaryrefslogtreecommitdiff
path: root/op.h
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 /op.h
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 'op.h')
-rw-r--r--op.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.h b/op.h
index c494386ed1..89440a2f41 100644
--- a/op.h
+++ b/op.h
@@ -85,7 +85,7 @@ Deprecated. Use C<GIMME_V> instead.
=cut
*/
-#define GIMME_V OP_GIMME(PL_op, block_gimme())
+#define GIMME_V Perl_gimme_V(aTHX)
/* Public flags */