X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Fcompiler.h;h=c4ade90920dcf3ed02b46e5d098a432147aa5c93;hb=d68c6810e2b7b5e9feed2b8af8a84cb1b4ce744d;hp=318ca65911d688a3168fbf3a0b96a845065369a3;hpb=e5227865e1f4a428e1e168dc141254a84c219226;p=userspace-rcu.git 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 */