diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-04-13 02:50:50 -0400 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2021-04-13 02:50:50 -0400 |
commit | 33ea2a10613df0d6ef25b146b175f8b3712896c3 (patch) | |
tree | 653b38d57adbbab6fb1f55e9a1b4aee56c250358 /include/global.h | |
parent | 56057d3c32420b8c348b4054b6ef2ab65fb572a2 (diff) |
Remove unnecessary scope for TEST_BUTTON
Diffstat (limited to 'include/global.h')
-rw-r--r-- | include/global.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/global.h b/include/global.h index 18e2bfea7..19605ca57 100644 --- a/include/global.h +++ b/include/global.h @@ -107,7 +107,7 @@ #define T2_READ_PTR(ptr) (void*) T2_READ_32(ptr) // Macros for checking the joypad -#define TEST_BUTTON(field, button) ({(field) & (button);}) +#define TEST_BUTTON(field, button) ((field) & (button)) #define JOY_NEW(button) TEST_BUTTON(gMain.newKeys, button) #define JOY_HELD(button) TEST_BUTTON(gMain.heldKeys, button) #define JOY_HELD_RAW(button) TEST_BUTTON(gMain.heldKeysRaw, button) |