X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Fcompiler.h;h=c4ade90920dcf3ed02b46e5d098a432147aa5c93;hb=94e710926b323933ec9ab76fb4fcc4cec2bcb1ed;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 */