develooper Front page | perl.perl5.porters | Postings from July 2019

[PATCH] More helpful result of NOT_REACHED assertion

From:
Paul "LeoNerd" Evans
Date:
July 3, 2019 16:20
Subject:
[PATCH] More helpful result of NOT_REACHED assertion
Message ID:
20190703172039.504ae0ce@shy.leonerd.org.uk
Before:
  perl5.31.2: op.c:1921: Perl_scalar: Assertion `0' failed.

"0" isn't very descriptive.

After:
  perl5.31.2: op.c:1921: Perl_scalar: Assertion `!"UNREACHABLE"' failed.

A little more helpful as it immediately reminds you this is an
unreachable statement that was reached.

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About