summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-05-18 14:56:16 -0600
committerKarl Williamson <khw@cpan.org>2022-05-31 05:30:17 -0600
commit4601e4251201e9884a27fc3926ee8de93884df0e (patch)
treee5deda29d385fb1a2350bf67ef7fa77592812b49 /scope.c
parent704ee149f702a507eec39e99c71a91932da3922b (diff)
downloadperl-4601e4251201e9884a27fc3926ee8de93884df0e.tar.gz
perlapi: Document save_pushptr
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index 70026df5e3..62e95ab57a 100644
--- a/scope.c
+++ b/scope.c
@@ -693,6 +693,20 @@ Perl_save_aptr(pTHX_ AV **aptr)
save_pushptrptr(*aptr, aptr, SAVEt_APTR);
}
+/*
+=for apidoc_section $callback
+=for apidoc save_pushptr
+
+The refcnt of object C<ptr> will be decremented at the end of the current
+I<pseudo-block>. C<type> gives the type of C<ptr>, expressed as one of the
+constants in F<scope.h> whose name begins with C<SAVEt_>.
+
+This is the underlying implementation of several macros, like
+C<SAVEFREESV>.
+
+=cut
+*/
+
void
Perl_save_pushptr(pTHX_ void *const ptr, const int type)
{