Skip to content

Commit

Permalink
perl.h: Use Perl_croak() instead of more specific panic
Browse files Browse the repository at this point in the history
Instead of using locale_panic_(), which is applicable for locales, use
the more generic Perl_croak().  This is in preparation for a future
commit that will use this code in other situations
  • Loading branch information
khwilliamson committed Feb 27, 2024
1 parent 6fe8ec7 commit b4915ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions perl.h
Original file line number Diff line number Diff line change
Expand Up @@ -7111,8 +7111,10 @@ the plain locale pragma without a parameter (S<C<use locale>>) is in effect.
STRINGIFY(cond_to_panic_if_already_locked))); \
) \
if (cond_to_panic_if_already_locked) { \
locale_panic_("Trying to lock locale incompatibly: " \
STRINGIFY(cond_to_panic_if_already_locked)); \
Perl_croak_nocontext("panic: %s: %d: Trying to lock" \
" locale incompatibly: " \
STRINGIFY(cond_to_panic_if_already_locked)\
"\n", __FILE__, __LINE__); \
} \
} \
CLANG_DIAG_RESTORE \
Expand Down

0 comments on commit b4915ed

Please sign in to comment.