aboutsummaryrefslogtreecommitdiff
path: root/include/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/macros.h')
-rw-r--r--include/macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/macros.h b/include/macros.h
index 32e8b7c..5c38215 100644
--- a/include/macros.h
+++ b/include/macros.h
@@ -11,6 +11,8 @@
#define streq(x, y) (!strcmp((x), (y)))
#define u8eq(x, y) (!u8cmp((x), (y)))
+#define ucseq(lhs, rhs) (!_Generic((lhs), struct u8view: u8cmp)((lhs), (rhs)))
+
#define _MLIB_STR(s) #s
#define _MLIB_CONCAT(x, y) x##y