summaryrefslogtreecommitdiff
path: root/src/common/cpp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/cpp.h')
-rw-r--r--src/common/cpp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/cpp.h b/src/common/cpp.h
index b5e09c0..a658559 100644
--- a/src/common/cpp.h
+++ b/src/common/cpp.h
@@ -31,6 +31,12 @@
/**
+ * Fournit la taille d'un tableau statique.
+ */
+#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
+
+
+/**
* Détermine la taille de la plus longue chaîne de caractères
* correspondant à un type donné.
*/