aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/tatl/macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tatl/macros.h b/include/tatl/macros.h
index 3496851..7b1cc27 100644
--- a/include/tatl/macros.h
+++ b/include/tatl/macros.h
@@ -55,4 +55,10 @@
/* Evaluate two values' inequality */
#define TATL_IS_NOT(a, b) (a != b)
+/* Evaluate two strings' equality */
+#define TATL_STR_IS(a, b) (strcmp(a, b) == 0)
+
+/* Evaluate two strings' inequality */
+#define TATL_STR_IS_NOT(a, b) (strcmp(a, b) != 0)
+
#endif /* TATL_MACROS */