This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Refactor and document ASSUME()
authorKarl Williamson <khw@cpan.org>
Wed, 7 Oct 2020 03:50:16 +0000 (21:50 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 15 Oct 2020 03:33:50 +0000 (21:33 -0600)
commit5d5b9c460e2a06563d2b5e35a1a79991460696eb
tree20ce9cb94bb4a1a538cf7b0908cf12ccaba2e925
parentdc6dad9d13b63b68105af09af8ec0349dd06af81
Refactor and document ASSUME()

The blead definition doesn't compile when I use Devel::PPPort earlier than
some point in the 5.19 series.

Examining the code, I noticed that there was a potential cyclic
definition: ASSUME can call NOTREACHED, and NOTREACHED can call assume.

Blead also assumed without checking that __builtin_unreachable() exists.

So, I refactored things so that there is no cycle, and changed a few
words in the comments to turn them into pod, and the new version
compiles all the way back.
perl.h