Add ARRAYLEN macro

This commit is contained in:
Rodrigo Arias 2023-01-17 19:25:21 +01:00 committed by Rodrigo Arias Mallo
parent 1024ce8ecd
commit 382cd7a371

View File

@ -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 */