diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index 049533e..39f3ada 100644 --- a/src/common.h +++ b/src/common.h | |||
@@ -714,6 +714,7 @@ wait_vsync(void) { | |||
714 | #define MIN(A, B) ((A) <= (B) ? (A) : (B)) | 714 | #define MIN(A, B) ((A) <= (B) ? (A) : (B)) |
715 | #define MAX(A, B) ((A) >= (B) ? (A) : (B)) | 715 | #define MAX(A, B) ((A) >= (B) ? (A) : (B)) |
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 | 718 | ||
718 | // IWRAM allocation macros for devkitARM. | 719 | // IWRAM allocation macros for devkitARM. |
719 | #define IWRAM_CODE __attribute__((section(".iwram"), long_call, target("arm"))) | 720 | #define IWRAM_CODE __attribute__((section(".iwram"), long_call, target("arm"))) |