From e323ceac1f453085192d53689870f378d897426e Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 14 Jun 2013 17:28:07 -0400 Subject: [PATCH] compiler.h: implement CAA_ARRAY_SIZE() Signed-off-by: Mathieu Desnoyers --- urcu/compiler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/urcu/compiler.h b/urcu/compiler.h index 318ca65..c4ade90 100644 --- a/urcu/compiler.h +++ b/urcu/compiler.h @@ -101,4 +101,6 @@ __attribute__((deprecated)) #endif +#define CAA_ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + #endif /* _URCU_COMPILER_H */ -- 2.34.1