This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add withinCOUNT() macro and change inRANGE to use it
authorKarl Williamson <khw@cpan.org>
Wed, 26 Jun 2019 18:01:05 +0000 (12:01 -0600)
committerKarl Williamson <khw@cpan.org>
Sun, 15 Sep 2019 04:26:49 +0000 (22:26 -0600)
commit833b0f46f2b673765c7e3d42e8530db0ad65ceeb
tree8c6ac4fe41ccac6338975c2bc7d2d886daa5c629
parenta15223fd18aff8e134dce76a2e5428202c0f2df1
Add withinCOUNT() macro and change inRANGE to use it

This uses just one conditional to see if a value is between low and
(low + n).
handy.h