Update NONMATCH macro

This commit is contained in:
Aetias
2024-02-26 21:12:35 +01:00
parent 77934d4999
commit b736e9e539
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -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