aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h
index 39f3ada..bfa3903 100644
--- a/src/common.h
+++ b/src/common.h
@@ -716,10 +716,13 @@ wait_vsync(void) {
716#define CLAMP(X, MIN, MAX) ((X) <= (MIN) ? (MIN) : (X) > (MAX) ? (MAX): (X)) 716#define CLAMP(X, MIN, MAX) ((X) <= (MIN) ? (MIN) : (X) > (MAX) ? (MAX): (X))
717#define LEN(ARR) (sizeof(ARR) / sizeof((ARR)[0])) 717#define LEN(ARR) (sizeof(ARR) / sizeof((ARR)[0]))
718 718
719// IWRAM allocation macros for devkitARM. 719//
720#define IWRAM_CODE __attribute__((section(".iwram"), long_call, target("arm"))) 720// Memory section macros for devkitARM.
721//
721#define IWRAM_DATA __attribute__((section(".iwram"))) 722#define IWRAM_DATA __attribute__((section(".iwram")))
723#define IWRAM_CODE __attribute__((section(".iwram"), long_call, target("arm")))
722#define EWRAM_DATA __attribute__((section(".ewram"))) 724#define EWRAM_DATA __attribute__((section(".ewram")))
725#define EWRAM_CODE __attribute__((section(".ewram"), long_call))
723#define EWRAM_BSS __attribute__((section(".sbss"))) 726#define EWRAM_BSS __attribute__((section(".sbss")))
724 727
725#endif // GBAEXP_COMMON_H 728#endif // GBAEXP_COMMON_H