summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-06-22 06:45:58 -0600
committerKarl Williamson <khw@cpan.org>2022-06-22 06:49:24 -0600
commitba04fd904a412353c7a73751c522c1e79954f4e4 (patch)
tree47eab8a4f92df723345fee20676c9c79f37f95b0 /handy.h
parent0e2d8b7e0844ff962fc2263a6037b12828a24df1 (diff)
downloadperl-ba04fd904a412353c7a73751c522c1e79954f4e4.tar.gz
handy.h: Comment MUTABLE_PTR
Tony Cook and Leon Timmermans explained this to me.
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index d1fcf5d608..54ecc24883 100644
--- a/handy.h
+++ b/handy.h
@@ -91,8 +91,10 @@ C<MUTABLE_PTR> is the base macro used to derive new casts. The other
already-built-in ones return pointers to what their names indicate.
=cut
- */
+The brace group version will raise a diagnostic if 'p' is const; the other
+blindly casts away const.
+ */
#if defined(PERL_USE_GCC_BRACE_GROUPS)
# define MUTABLE_PTR(p) ({ void *p_ = (p); p_; })
#else