diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-06-19 06:43:08 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-06-19 10:26:25 -0400 |
commit | 148f39b7de6eae9ddd59e0b0aff691d6abea7aca (patch) | |
tree | 4234b72396b4e97e8fa5001078366a908af83e6a /util.c | |
parent | 8ce6f80a4321cf8eaae14a6a8401f8e597c25f25 (diff) | |
download | perl-148f39b7de6eae9ddd59e0b0aff691d6abea7aca.tar.gz |
/* NOTREACHED */ belongs *before* the unreachable.
Definitely not *after* it. It marks the start of the unreachable,
not the first unrechable line. And if they are in that order,
it looks better to linebreak after the lint hint.
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -1571,7 +1571,8 @@ Perl_die_sv(pTHX_ SV *baseex) { PERL_ARGS_ASSERT_DIE_SV; croak_sv(baseex); - assert(0); /* NOTREACHED */ + /* NOTREACHED */ + assert(0); NORETURN_FUNCTION_END; } @@ -1593,7 +1594,8 @@ Perl_die_nocontext(const char* pat, ...) va_list args; va_start(args, pat); vcroak(pat, &args); - assert(0); /* NOTREACHED */ + /* NOTREACHED */ + assert(0); va_end(args); NORETURN_FUNCTION_END; } @@ -1605,7 +1607,8 @@ Perl_die(pTHX_ const char* pat, ...) va_list args; va_start(args, pat); vcroak(pat, &args); - assert(0); /* NOTREACHED */ + /* NOTREACHED */ + assert(0); va_end(args); NORETURN_FUNCTION_END; } @@ -1705,7 +1708,8 @@ Perl_croak_nocontext(const char *pat, ...) va_list args; va_start(args, pat); vcroak(pat, &args); - assert(0); /* NOTREACHED */ + /* NOTREACHED */ + assert(0); va_end(args); } #endif /* PERL_IMPLICIT_CONTEXT */ @@ -1716,7 +1720,8 @@ Perl_croak(pTHX_ const char *pat, ...) va_list args; va_start(args, pat); vcroak(pat, &args); - assert(0); /* NOTREACHED */ + /* NOTREACHED */ + assert(0); va_end(args); } |