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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/cpp.h b/src/common/cpp.h
index 2644281..4ebad82 100644
--- a/src/common/cpp.h
+++ b/src/common/cpp.h
@@ -43,6 +43,15 @@
/**
+ * Facilite la transmission d'arguement pour des fonctions
+ * comme strncmp() et Cie.
+ */
+#define SL(str) str, strlen(str)
+
+#define STCSL(str) str, STATIC_STR_SIZE(str)
+
+
+/**
* Détermine la taille de la plus longue chaîne de caractères
* correspondant à un type donné.
*/