summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-09-05 18:04:39 -0600
committerKarl Williamson <khw@cpan.org>2020-09-05 18:09:43 -0600
commit4f7dafea39b73f82307e04061cb36ac6865108b9 (patch)
tree15e098ef0a389856607c9889ba1de7600f4cac4c /util.c
parent8de16cf63a494da6b361ce55148e6c06cf18461c (diff)
downloadperl-4f7dafea39b73f82307e04061cb36ac6865108b9.tar.gz
perlapi: Clarify croak_no_modify()
Diffstat (limited to 'util.c')
-rw-r--r--util.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/util.c b/util.c
index 8cd1e689ad..f54159e821 100644
--- a/util.c
+++ b/util.c
@@ -1914,9 +1914,12 @@ Perl_croak(pTHX_ const char *pat, ...)
/*
=for apidoc croak_no_modify
-Exactly equivalent to C<Perl_croak(aTHX_ "%s", PL_no_modify)>, but generates
-terser object code than using C<Perl_croak>. Less code used on exception code
-paths reduces CPU cache pressure.
+This encapsulates a common reason for dying, generating terser object code than
+using the generic C<Perl_croak>. It is exactly equivalent to
+C<Perl_croak(aTHX_ "%s", PL_no_modify)> (which expands to something like
+"Modification of a read-only value attempted").
+
+Less code used on exception code paths reduces CPU cache pressure.
=cut
*/