diff options
author | Karl Williamson <khw@cpan.org> | 2022-05-12 15:25:09 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-05-19 04:55:46 -0600 |
commit | 4f06c0d52f50cb0d949c0bd4fc6f589b9d71bd82 (patch) | |
tree | 13d85c3a32e7f730a362c487d9327bf2b3ecc64a /inline.h | |
parent | 30062c3aa8b1235620a0d871dc8036c34f0ff0eb (diff) | |
download | perl-4f06c0d52f50cb0d949c0bd4fc6f589b9d71bd82.tar.gz |
perlapi: Document SvAMAGIC_(on|off)
Diffstat (limited to 'inline.h')
-rw-r--r-- | inline.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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) { |