diff options
author | Karl Williamson <khw@cpan.org> | 2022-05-29 11:40:32 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-05-31 06:52:33 -0600 |
commit | 43131e10b7e6fbdd31334ae0259411cead187801 (patch) | |
tree | 0a62b51318874d04eb698f4202e1a4c1cd9c3fda /handy.h | |
parent | 4601e4251201e9884a27fc3926ee8de93884df0e (diff) | |
download | perl-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |