summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-04-13 02:50:50 -0400
committerGriffinR <griffin.g.richards@gmail.com>2021-04-13 02:50:50 -0400
commit33ea2a10613df0d6ef25b146b175f8b3712896c3 (patch)
tree653b38d57adbbab6fb1f55e9a1b4aee56c250358 /include/global.h
parent56057d3c32420b8c348b4054b6ef2ab65fb572a2 (diff)
Remove unnecessary scope for TEST_BUTTON
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h2
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)