diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-02-13 16:50:13 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-02-13 16:50:13 +0100 |
commit | 5a419deabba93d9fea3f6af2c921a76d2dc9927c (patch) | |
tree | 6159d6b507774aff8ba458a079f4ffd24aaa8319 /src/c8asm/common.h | |
parent | aa04ccc348bfdc2f98a27b78b7ee3574b0fe5290 (diff) |
Move *eq() macros to common.h
Diffstat (limited to 'src/c8asm/common.h')
-rw-r--r-- | src/c8asm/common.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/c8asm/common.h b/src/c8asm/common.h index 36a7036..165e6bc 100644 --- a/src/c8asm/common.h +++ b/src/c8asm/common.h @@ -6,8 +6,10 @@ #define MIN(x, y) ((x) < (y) ? (x) : (y)) #define MAX(x, y) ((x) > (y) ? (x) : (y)) -#define lengthof(a) (sizeof(a) / sizeof(*(a))) -#define streq(x, y) (!strcmp(x, y)) +#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, y) (!u8cmp(x, y)) extern size_t filesize; extern const char *filename; |