diff options
author | Karl Williamson <khw@cpan.org> | 2022-06-22 06:45:58 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-06-22 06:49:24 -0600 |
commit | ba04fd904a412353c7a73751c522c1e79954f4e4 (patch) | |
tree | 47eab8a4f92df723345fee20676c9c79f37f95b0 /handy.h | |
parent | 0e2d8b7e0844ff962fc2263a6037b12828a24df1 (diff) | |
download | perl-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |