]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
libcgroup-internal.h: add ARRAY_SIZE macro
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 7 Aug 2023 09:26:36 +0000 (14:56 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 7 Aug 2023 15:32:25 +0000 (09:32 -0600)
commit5279c5914a3a0bf15990ff88447750422b4da1c4
tree3e1333bcc3ed336a33c03698e6596eac8b9ee75b
parent4b4de12c7e9e065b2bb1d9a35a045e23edd2a3de
libcgroup-internal.h: add ARRAY_SIZE macro

Add ARRAY_SIZE macro to calculate the size of an array, this helper
macro improves readability.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/libcgroup-internal.h