summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-08-27 14:05:19 -0600
committerKarl Williamson <khw@cpan.org>2020-09-05 17:31:10 -0600
commit9de44d190c13c3f20ecf7745cda855968808dd25 (patch)
tree4de4f9a5f0f4d5ffc99ed14a4caecc44d831cb6a /handy.h
parent59e77c34ccc302b2ce084881d16fff7e91f4abf5 (diff)
downloadperl-9de44d190c13c3f20ecf7745cda855968808dd25.tar.gz
perlapi: Display PERL_VERSION_xy better
Now that we have the tools to show these as a whole list, do so
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/handy.h b/handy.h
index f4990f2619..0d1023ad0a 100644
--- a/handy.h
+++ b/handy.h
@@ -500,6 +500,11 @@ Perl_xxx(aTHX_ ...) form for any API calls where it's used.
/*
=for apidoc_section Versioning
=for apidoc AmR|bool|PERL_VERSION_EQ|const U8 major|const U8 minor|const U8 patch
+=for apidoc_item PERL_VERSION_NE
+=for apidoc_item PERL_VERSION_LT
+=for apidoc_item PERL_VERSION_LE
+=for apidoc_item PERL_VERSION_GT
+=for apidoc_item PERL_VERSION_GE
Returns whether or not the perl currently being compiled has the specified
relationship to the perl given by the parameters. For example,
@@ -512,10 +517,6 @@ relationship to the perl given by the parameters. For example,
Note that this is usable in making compile-time decisions
-The possible comparisons are C<PERL_VERSION_EQ>, C<PERL_VERSION_NE>,
-C<PERL_VERSION_GE>, C<PERL_VERSION_GT>, C<PERL_VERSION_LE>, and
-C<PERL_VERSION_LT>.
-
You may use the special value '*' for the final number to mean ALL possible
values for it. Thus,
@@ -542,12 +543,6 @@ becomes
#if PERL_VERSION_LE(5,9,'*')
-=for apidoc AmRh|bool|PERL_VERSION_NE|const U8 major|const U8 minor|const U8 patch
-=for apidoc AmRh|bool|PERL_VERSION_GE|const U8 major|const U8 minor|const U8 patch
-=for apidoc AmRh|bool|PERL_VERSION_GT|const U8 major|const U8 minor|const U8 patch
-=for apidoc AmRh|bool|PERL_VERSION_LE|const U8 major|const U8 minor|const U8 patch
-=for apidoc AmRh|bool|PERL_VERSION_LT|const U8 major|const U8 minor|const U8 patch
-
=cut
*/