diff options
author | Tony Cook <tony@develop-help.com> | 2011-10-11 16:30:44 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2011-10-17 20:17:34 +1100 |
commit | 567f3b56280708b687bbc7050db07137b81b9fd9 (patch) | |
tree | 75ae127e934f9daea9f088d74b93972eea9c9551 /sv.h | |
parent | ca955addfd36c61985c1a4462ac43a9a3cf3104e (diff) | |
download | perl-567f3b56280708b687bbc7050db07137b81b9fd9.tar.gz |
document boolSV(), which is used in the default typemap
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) |