summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-08-27 11:03:44 -0600
committerKarl Williamson <khw@cpan.org>2020-11-29 09:06:35 -0700
commitfb85716223db49723bdef4aa9bb48d063fde98e5 (patch)
treeb92c6f1c241b6e5c9e26f66e20680c0482ad48e4 /sv.h
parent4813a67cfbaf83931da40e8d5e2fc18fd7ea9e1b (diff)
downloadperl-fb85716223db49723bdef4aa9bb48d063fde98e5.tar.gz
Document SvSHARED_HASH
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index 2aae6b63b8..f753a94889 100644
--- a/sv.h
+++ b/sv.h
@@ -1925,6 +1925,12 @@ scalar.
#define SvSHARED_HEK_FROM_PV(pvx) \
((struct hek*)(pvx - STRUCT_OFFSET(struct hek, hek_key)))
+/*
+=for apidoc Am|struct hek*|SvSHARED_HASH|SV * sv
+Returns the hash for C<sv> created by C<L</newSVpvn_share>>.
+
+=cut
+*/
#define SvSHARED_HASH(sv) (0 + SvSHARED_HEK_FROM_PV(SvPVX_const(sv))->hek_hash)
/* flag values for sv_*_flags functions */