summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-07-18 08:44:25 -0600
committerKarl Williamson <khw@cpan.org>2020-08-22 20:55:35 -0600
commit13cc62f5e80c884ae093ff800e2c57d8fd5b8a15 (patch)
tree74c4330070b223bc0f467f9bc4b3b3613a3e8815 /sv.h
parentc4d5dfab7d79e1091d93e1f865e45244002f7513 (diff)
downloadperl-13cc62f5e80c884ae093ff800e2c57d8fd5b8a15.tar.gz
Document SvOOK_off
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index 2538741c53..59ef6985d0 100644
--- a/sv.h
+++ b/sv.h
@@ -961,6 +961,16 @@ Returns the vstring magic, or NULL if none
#define SvOOK(sv) (SvFLAGS(sv) & SVf_OOK)
#define SvOOK_on(sv) (SvFLAGS(sv) |= SVf_OOK)
+
+
+/*
+=for apidoc Am|void|SvOOK_off|SV * sv
+
+Remove any string offset.
+
+=cut
+*/
+
#define SvOOK_off(sv) ((void)(SvOOK(sv) && (sv_backoff(sv),0)))
#define SvFAKE(sv) (SvFLAGS(sv) & SVf_FAKE)