This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
utf8.h: Add assertions for macros that take chars
authorKarl Williamson <khw@cpan.org>
Wed, 26 Apr 2017 16:29:58 +0000 (10:29 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 1 Jun 2017 13:05:15 +0000 (07:05 -0600)
commita6951642ede4abe605dcf0e94b74948e0a60a56b
tree99c9e6be83325f8ad94cd73d397f5890dab88b90
parenta5ba252751fc7fd7b9d43d0ad4491eb68a14a4a6
utf8.h: Add assertions for macros that take chars

This is inspired by [perl #131190].  The UTF-8 macros whose parameters
are characters now have assertions that verify they are not being called
with something that won't fit in a char.  These assertions should be
getting optimized out if the input type is a char or U8.
utf8.h