disable PACKED and ALIGNED in CLion

CLion does not like these macros when doing static analysis, so disable them for that.
Does not affect build.
This commit is contained in:
Henny022p 2025-03-09 14:32:04 +00:00
parent deacc6e95e
commit 4c88a43f42
1 changed files with 5 additions and 1 deletions

View File

@ -16,9 +16,13 @@
#define NAKED __attribute__((naked))
#define UNUSED __attribute__((unused))
#ifdef __CLION_IDE__
#define PACKED
#define ALIGNED(n)
#else
#define PACKED __attribute__((packed))
#define ALIGNED(n) __attribute__((aligned(n)))
#endif
#define SOUND_INFO_PTR (*(struct SoundInfo**)0x3007FF0)
#define INTR_CHECK (*(u16*)0x3007FF8)