3f1b01
From b26a606d84ae1a6da560c7cd71d1a33c0dc7178e Mon Sep 17 00:00:00 2001
3f1b01
From: Karl Williamson <khw@cpan.org>
3f1b01
Date: Sun, 14 Jun 2020 12:26:02 -0600
3f1b01
Subject: [PATCH] Update pod for SvTRUE, to indicate single param evaluation
3f1b01
MIME-Version: 1.0
3f1b01
Content-Type: text/plain; charset=UTF-8
3f1b01
Content-Transfer-Encoding: 8bit
3f1b01
3f1b01
5.32 changed this macro into an inline function so that 'sv' only gets
3f1b01
evaluated once, but didn't update the documentation to reflect that.
3f1b01
3f1b01
Signed-off-by: Petr Písař <ppisar@redhat.com>
3f1b01
---
3f1b01
 sv.h | 3 ++-
3f1b01
 1 file changed, 2 insertions(+), 1 deletion(-)
3f1b01
3f1b01
diff --git a/sv.h b/sv.h
3f1b01
index 3721b2fb1b..ad8accbf1a 100644
3f1b01
--- a/sv.h
3f1b01
+++ b/sv.h
3f1b01
@@ -1607,7 +1607,8 @@ false.  See C<L</SvOK>> for a defined/undefined test.  Handles 'get' magic
3f1b01
 unless the scalar is already C<SvPOK>, C<SvIOK> or C<SvNOK> (the public, not the
3f1b01
 private flags).
3f1b01
 
3f1b01
-See C<L</SvTRUEx>> for a version which guarantees to evaluate C<sv> only once.
3f1b01
+As of Perl 5.32, this is guaranteed to evaluate C<sv> only once.  Prior to that
3f1b01
+release, use C<L</SvTRUEx>> for single evaluation.
3f1b01
 
3f1b01
 =for apidoc Am|bool|SvTRUE_nomg|SV* sv
3f1b01
 Returns a boolean indicating whether Perl would evaluate the SV as true or
3f1b01
-- 
3f1b01
2.25.4
3f1b01