compiler.h: implement CAA_ARRAY_SIZE()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 14 Jun 2013 21:28:07 +0000 (17:28 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 14 Jun 2013 21:29:32 +0000 (17:29 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/compiler.h

index 318ca65911d688a3168fbf3a0b96a845065369a3..c4ade90920dcf3ed02b46e5d098a432147aa5c93 100644 (file)
        __attribute__((deprecated))
 #endif
 
+#define CAA_ARRAY_SIZE(x)      (sizeof(x) / sizeof((x)[0]))
+
 #endif /* _URCU_COMPILER_H */
This page took 0.04106 seconds and 4 git commands to generate.