diff --git a/src/include/common.h b/src/include/common.h index 1caee4c..068635e 100644 --- a/src/include/common.h +++ b/src/include/common.h @@ -29,6 +29,8 @@ #define USE_RET __attribute__((warn_unused_result)) +#define ARRAYLEN(x) (sizeof(x)/sizeof((x)[0])) + /* clang-format on */ #endif /* COMMON_H */