diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-05-28 14:53:04 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-05-28 14:53:04 +0100 |
commit | cd431fdedf8dec69c65efa7edc1d60005800919a (patch) | |
tree | 21c64a0da33fe35db7256bf56ec2a8c9faf9e5c0 /handy.h | |
parent | 5c135d48c0468f552840e5ac9811f70aebcac766 (diff) | |
download | perl-cd431fdedf8dec69c65efa7edc1d60005800919a.tar.gz |
Add C_ARRAY_END(), returning a pointer to after the last element of an array.
Refactor the macro append_flags() in dump.c to use it.
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -916,6 +916,7 @@ void Perl_mem_log_del_sv(const SV *sv, const char *filename, const int linenumbe #endif #define C_ARRAY_LENGTH(a) (sizeof(a)/sizeof((a)[0])) +#define C_ARRAY_END(a) (a) + (sizeof(a)/sizeof((a)[0])) #ifdef NEED_VA_COPY # ifdef va_copy |