aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/macros.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/macros.h b/include/macros.h
index 5fef367..45eae29 100644
--- a/include/macros.h
+++ b/include/macros.h
@@ -7,9 +7,9 @@
#define lengthof(a) (sizeof(a) / sizeof(*(a)))
-#define memeq(x, y, n) (!memcmp(x, y, n))
-#define streq(x, y) (!strcmp(x, y))
-#define u8eq(x, n, y, m) (!u8cmp(x, n, y, m))
+#define memeq(...) (!memcmp(__VA_ARGS__))
+#define streq(...) (!strcmp(__VA_ARGS__))
+#define u8eq(...) (!u8cmp(__VA_ARGS__))
#ifdef NDEBUG
# include <stddef.h>