summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-05-12 14:57:33 -0600
committerKarl Williamson <khw@cpan.org>2022-05-19 04:55:19 -0600
commit30062c3aa8b1235620a0d871dc8036c34f0ff0eb (patch)
tree7c0dfc2523ea2c1154ac3adec48297a38aedc81c /gv.c
parent7aa7cc795ce2343186811f374b9bfa051092ffc4 (diff)
downloadperl-30062c3aa8b1235620a0d871dc8036c34f0ff0eb.tar.gz
perlapi: Document Gv_AMupdate
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c26
1 files changed, 20 insertions, 6 deletions
diff --git a/gv.c b/gv.c
index 97e89ed787..fb51dd1081 100644
--- a/gv.c
+++ b/gv.c
@@ -3070,12 +3070,26 @@ Perl_magic_freeovrld(pTHX_ SV *sv, MAGIC *mg)
return 0;
}
-/* Updates and caches the CV's */
-/* Returns:
- * 1 on success and there is some overload
- * 0 if there is no overload
- * -1 if some error occurred and it couldn't croak
- */
+/*
+=for apidoc Gv_AMupdate
+
+Recalculates overload magic in the package given by C<stash>.
+
+Returns:
+
+=over
+
+=item 1 on success and there is some overload
+
+=item 0 if there is no overload
+
+=item -1 if some error occurred and it couldn't croak (because C<destructing>
+is true).
+
+=back
+
+=cut
+*/
int
Perl_Gv_AMupdate(pTHX_ HV *stash, bool destructing)