Skip to content

Conversation

@khwilliamson
Copy link
Contributor

This does for die() what #23684 did for croak()
And changes perlapi to have a single entry for all the general purpose croak/die forms, like vcroak and die_sv

  • This set of changes does not require a perldelta entry.

@khwilliamson khwilliamson changed the title die() expands to die_nocontext; combine perlapi croak/die forms die() now is die_nocontext; combine perlapi croak/die forms Sep 12, 2025
It was marked as NN, but the code actually handles the case of it being
NULL
This has a non-pointer argument marked with NN.
This had 2 non-pointer arguments marked as NN.
See 03f24b8 for the motivation.

This commit changes plain die() to not use a thread context parameter.
It and die_nocontext() now behave identically.
This makes it easier for the reader to decide which one to use.
This includes vcroak, croak_sv, and die_sv
This makes it easier for the reader to decide which one to use.
@khwilliamson khwilliamson merged commit 8777114 into Perl:blead Sep 21, 2025
33 checks passed
@khwilliamson khwilliamson deleted the croak branch September 21, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant