]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - para.h
afs.c: Fix documentation of stdin_command().
[paraslash.git] / para.h
diff --git a/para.h b/para.h
index a580b14c9946bf9d10d1062a49b445e295ba72ff..5dec070f00458bd59d62fbb8fed1b3bc60cb31da 100644 (file)
--- a/para.h
+++ b/para.h
@@ -206,5 +206,8 @@ static inline int para_random(unsigned max)
        return ((max + 0.0) * (rand() / (RAND_MAX + 1.0)));
 }
 
-/* Round up x to a multiple of y */
+/** Round up x to a multiple of y */
 #define ROUND_UP(x, y) (((x) + (y - 1) / (y)) * (y))
+
+/** Get the size of an array */
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))