X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Fhelper.h;h=9d6617a8de044b2f1fa04481c9c1874cb8ffbcd2;hb=aeef352f476cf7b0f8a4ca032f7d94164be0292f;hp=b9448e3324febca1f1923b6ef01c53532529d36c;hpb=312876ad18b51b3c56318a55e52be8e69556dc43;p=lttng-ust.git diff --git a/include/helper.h b/include/helper.h index b9448e33..9d6617a8 100644 --- a/include/helper.h +++ b/include/helper.h @@ -41,4 +41,6 @@ void *zmalloc(size_t len) __min1 <= __min2 ? __min1: __min2; \ }) +#define LTTNG_ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) + #endif /* _LTTNG_UST_HELPER_H */