summaryrefslogtreecommitdiff
path: root/inline.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-05-12 15:25:09 -0600
committerKarl Williamson <khw@cpan.org>2022-05-19 04:55:46 -0600
commit4f06c0d52f50cb0d949c0bd4fc6f589b9d71bd82 (patch)
tree13d85c3a32e7f730a362c487d9327bf2b3ecc64a /inline.h
parent30062c3aa8b1235620a0d871dc8036c34f0ff0eb (diff)
downloadperl-4f06c0d52f50cb0d949c0bd4fc6f589b9d71bd82.tar.gz
perlapi: Document SvAMAGIC_(on|off)
Diffstat (limited to 'inline.h')
-rw-r--r--inline.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/inline.h b/inline.h
index a884472663..436f8eb3ac 100644
--- a/inline.h
+++ b/inline.h
@@ -419,6 +419,14 @@ Perl_SvREFCNT_dec_NN(pTHX_ SV *sv)
Perl_sv_free2(aTHX_ sv, rc);
}
+/*
+=for apidoc SvAMAGIC_on
+
+Indicate that C<sv> has overloading (active magic) enabled.
+
+=cut
+*/
+
PERL_STATIC_INLINE void
Perl_SvAMAGIC_on(SV *sv)
{
@@ -427,6 +435,15 @@ Perl_SvAMAGIC_on(SV *sv)
if (SvOBJECT(SvRV(sv))) HvAMAGIC_on(SvSTASH(SvRV(sv)));
}
+
+/*
+=for apidoc SvAMAGIC_off
+
+Indicate that C<sv> has overloading (active magic) disabled.
+
+=cut
+*/
+
PERL_STATIC_INLINE void
Perl_SvAMAGIC_off(SV *sv)
{