This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_goto: do the DIEing before the POPing
authorDavid Mitchell <davem@iabyn.com>
Sun, 5 Jul 2015 09:21:14 +0000 (10:21 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 08:59:35 +0000 (08:59 +0000)
commitd338c0c29667542eb63fab7239435a1eca7b3f35
tree4f3d87c9ca9863d09ee7e834090b3d4a7913ba57
parent5d52e3101d76a99b351d6620ccec2cd8e6119fb9
pp_goto: do the DIEing before the POPing

Rearrange the beginning of the 'goto &func' part of pp_goto so that it
does most of its error checks (e.g. "Can't goto subroutine from an eval")
before it starts doing "return-ish" stuff. This makes the code slightly
cleaner, especially as it doesn't have to undo the SvREFCNT_inc(cv) guard
in every die branch.
pp_ctl.c