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