]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blobdiff - rpp/include/base.h
Add ARRAY_SIZE() macro
[pes-rpp/rpp-lib.git] / rpp / include / base.h
index 33a1d05b6dfaa38c64da90d16534ccb6eaaa78bd..cde2dec50519d87dd3cfb99fd9befa1ff11f6ac1 100644 (file)
@@ -43,4 +43,6 @@
 #  define D(x)
 #endif
 
+#define ARRAY_SIZE(x) (sizeof(x)/sizeof(*(x)))
+
 #endif /* __BASE_H */