diff options
author | gkm <gkm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-24 20:28:15 +0000 |
---|---|---|
committer | gkm <gkm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-24 20:28:15 +0000 |
commit | 4e6879f50eedabc0a46ed95e2cec71fe8ae1f7cb (patch) | |
tree | ea841bcfeb0f1a2bc0d604e20c129759a9829f1d /include/libiberty.h | |
parent | ecac55ca893b076b12fdc328785ae0b7a04fba8e (diff) | |
download | gcc-4e6879f50eedabc0a46ed95e2cec71fe8ae1f7cb.tar.gz |
* libiberty.h (ARRAY_SIZE): New macro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35947 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h index 476e0165b3e..e6eb34739ce 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -200,6 +200,8 @@ extern int asprintf PARAMS ((char **, const char *, ...)) ATTRIBUTE_PRINTF_2; extern int vasprintf PARAMS ((char **, const char *, va_list)) ATTRIBUTE_PRINTF(2,0); +#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0])) + #ifdef __cplusplus } #endif |