diff options
| author | Henny022p <info@henny022.de> | 2025-03-09 14:32:04 +0000 |
|---|---|---|
| committer | Henny022p <info@henny022.de> | 2025-03-09 19:00:33 +0000 |
| commit | 4c88a43f42196a5af1f26b420097759d5485cb35 (patch) | |
| tree | ece6bec9242278786935bcf0ac25db317842f49d | |
| parent | deacc6e95e733a54c9660f6b0155ceddddd2e6e3 (diff) | |
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.
| -rw-r--r-- | include/gba/defines.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gba/defines.h b/include/gba/defines.h index a135969e..73802774 100644 --- a/include/gba/defines.h +++ b/include/gba/defines.h @@ -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) |
