diff options
Diffstat (limited to 'include/macros.h')
-rw-r--r-- | include/macros.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/macros.h b/include/macros.h index d4b53b4..32e8b7c 100644 --- a/include/macros.h +++ b/include/macros.h @@ -7,9 +7,9 @@ #define lengthof(a) (sizeof(a) / sizeof(*(a))) -#define memeq(...) (!memcmp(__VA_ARGS__)) -#define streq(...) (!strcmp(__VA_ARGS__)) -#define u8eq(...) (!u8cmp(__VA_ARGS__)) +#define memeq(x, y, n) (!memcmp((x), (y), (n))) +#define streq(x, y) (!strcmp((x), (y))) +#define u8eq(x, y) (!u8cmp((x), (y))) #define _MLIB_STR(s) #s #define _MLIB_CONCAT(x, y) x##y |