From 8c2194213d30844320187ec6b2b6e37513000047 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 29 Aug 2020 11:00:28 -0600 Subject: Document TARG, dTARGET --- pp.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'pp.h') diff --git a/pp.h b/pp.h index cb50dbef03..da4e9da7d5 100644 --- a/pp.h +++ b/pp.h @@ -53,6 +53,16 @@ Refetch the stack pointer. Used after a callback. See L. #undef SP /* Solaris 2.7 i386 has this in /usr/include/sys/reg.h */ #define SP sp #define MARK mark + +/* +=for apidoc Amns||TARG + +C is short for "target". It is an entry in the pad that an OPs +C refers to. It is scratchpad space, often used as a return +value for the OP, but some use it for other purposes. + +=cut +*/ #define TARG targ #define PUSHMARK(p) \ @@ -91,6 +101,13 @@ Refetch the stack pointer. Used after a callback. See L. #define dTARGETSTACKED SV * GETTARGETSTACKED #define GETTARGET targ = PAD_SV(PL_op->op_targ) + +/* +=for apidoc Amns||dTARGET +Declare that this function uses C + +=cut +*/ #define dTARGET SV * GETTARGET #define GETATARGET targ = (PL_op->op_flags & OPf_STACKED ? sp[-1] : PAD_SV(PL_op->op_targ)) -- cgit v1.2.1