diff --git a/include/mtl/target.hpp b/include/mtl/target.hpp index 6bce946..e0bf50a 100644 --- a/include/mtl/target.hpp +++ b/include/mtl/target.hpp @@ -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 +