summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-05-29 11:40:32 -0600
committerKarl Williamson <khw@cpan.org>2022-05-31 06:52:33 -0600
commit43131e10b7e6fbdd31334ae0259411cead187801 (patch)
tree0a62b51318874d04eb698f4202e1a4c1cd9c3fda /handy.h
parent4601e4251201e9884a27fc3926ee8de93884df0e (diff)
downloadperl-43131e10b7e6fbdd31334ae0259411cead187801.tar.gz
handy.h: ASSERT_NOT_PTR doesn't work for void*
Add comment to that
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index ee3082191b..2e431c9416 100644
--- a/handy.h
+++ b/handy.h
@@ -1397,7 +1397,10 @@ or casts
#endif
/* Likewise, this is effectively a static assert to be used to guarantee the
- * parameter is a pointer */
+ * parameter is a pointer
+ *
+ * NOT suitable for void*
+ */
#define ASSERT_IS_PTR(x) (__ASSERT_(sizeof(*(x))) (x))
/* FITS_IN_8_BITS(c) returns true if c doesn't have a bit set other than in