blob: 36a70362a991a7bba4a09130542175109d32dbdd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef AHOY_C8ASM_COMMON_H
#define AHOY_C8ASM_COMMON_H
#include <rune.h>
#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))
extern size_t filesize;
extern const char *filename;
extern const char8_t *baseptr;
#endif /* !AHOY_C8ASM_COMMON_H */
|