Add GBA section target macros

This commit is contained in:
Madeline Busig 2024-07-30 11:43:21 -06:00
parent 64763adf47
commit 62da9d03c1

View File

@ -25,3 +25,19 @@
#endif
#ifdef __GBA__
#define GBA_IWRAM [[gnu::section(".iwram"), gnu::long_call]]
#define GBA_EWRAM [[gnu::section(".ewram"), gnu::long_call]]
#define GBA_IWRAM_DATA [[gnu::section(".iwram")]]
#define GBA_EWRAM_DATA [[gnu::section(".ewram")]]
#else
#define GBA_IWRAM
#define GBA_EWRAM
#define GBA_IWRAM_DATA
#define GBA_EWRAM_DATA
#endif