summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2011-10-11 16:30:44 +1100
committerTony Cook <tony@develop-help.com>2011-10-17 20:17:34 +1100
commit567f3b56280708b687bbc7050db07137b81b9fd9 (patch)
tree75ae127e934f9daea9f088d74b93972eea9c9551 /sv.h
parentca955addfd36c61985c1a4462ac43a9a3cf3104e (diff)
downloadperl-567f3b56280708b687bbc7050db07137b81b9fd9.tar.gz
document boolSV(), which is used in the default typemap
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 72cd887026..8edb42bbc8 100644
--- a/sv.h
+++ b/sv.h
@@ -1979,6 +1979,16 @@ Returns a pointer to the character buffer.
#define SvIMMORTAL(sv) ((sv)==&PL_sv_undef || (sv)==&PL_sv_yes || (sv)==&PL_sv_no || (sv)==&PL_sv_placeholder)
+/*
+=for apidoc Am|SV *|boolSV|bool b
+
+Returns a true SV if C<b> is a true value, or a false SV if C<b> is 0.
+
+See also C<PL_sv_yes> and C<PL_sv_no>.
+
+=cut
+*/
+
#define boolSV(b) ((b) ? &PL_sv_yes : &PL_sv_no)
#define isGV(sv) (SvTYPE(sv) == SVt_PVGV)