diff options
| author | Aetias <aetias@outlook.com> | 2024-02-26 21:12:35 +0100 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2024-02-26 21:12:35 +0100 |
| commit | b736e9e539a91f62afa1a391f85a115a44024d15 (patch) | |
| tree | f45da5a556637a99af254ae8618688cf26d44253 /include | |
| parent | 77934d49990456f412ee3f827941ee826cd52df6 (diff) | |
Update `NONMATCH` macro
Diffstat (limited to 'include')
| -rw-r--r-- | include/global.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/global.h b/include/global.h index 9b65fa26..7247cb4b 100644 --- a/include/global.h +++ b/include/global.h @@ -4,13 +4,15 @@ #define NULL 0 #define GET_FLAG(arr, pos) (((1 << ((pos) & 0x1f)) & (arr)[((u32)(pos)) >> 5]) != 0) -#define SET_FLAG(arr, pos) ((arr)[((u32(pos))) >> 5] |= 1 << ((pos) & 0x1f)) +#define SET_FLAG(arr, pos) ((arr)[((u32)(pos)) >> 5] |= 1 << ((pos) & 0x1f)) #define RESET_FLAG(arr, pos) ((arr)[((u32)(pos)) >> 5] &= ~(1 << ((pos) & 0x1f))) +// NONMATCH(name) marks the function `name` as nonmatching +// The reason for the macro is to easily detect it in progress.py #ifdef NONMATCHING -#define NONMATCH +#define NONMATCH(name) name #else -#define NONMATCH asm +#define NONMATCH(name) asm name #endif // Prevent the IDE from reporting errors that the compiler/linker won't report |
