X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=handy.h;h=9f0fb3cc4dafc8c11f3fc385bd15cc9b9af11722;hb=080c2decc1c1070c5ce819e741a37407aa249711;hp=6936c20df092b3fb26423caea0d04ff7ce074114;hpb=20b634c2cddd73f32cb58e435a5061f5c6e53570;p=p5sagit%2Fp5-mst-13.2.git diff --git a/handy.h b/handy.h index 6936c20..9f0fb3c 100644 --- a/handy.h +++ b/handy.h @@ -619,6 +619,8 @@ hopefully catches attempts to access uninitialized memory. #define StructCopy(s,d,t) Copy(s,d,1,t) #endif +#define C_ARRAY_LENGTH(a) (sizeof(a)/sizeof((a)[0])) + #ifdef NEED_VA_COPY # ifdef va_copy # define Perl_va_copy(s, d) va_copy(d, s)