summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-11-03 09:28:45 -0500
committerGitHub <noreply@github.com>2020-11-03 09:28:45 -0500
commit99dd461befcfe3bef3ce188fea2fb372c2f21b98 (patch)
tree2b0198d394186c371987f018677d12f929a66a44 /include/global.h
parent9e55ae22b19d58eca8fc0cdd2fcea9f2cca14319 (diff)
parentca950a8daf6dd95ab5dacc51f250fea7b605361c (diff)
Merge pull request #1189 from aaaaaa123456789/reverts
Undo PokeCodec's PRs and port changes
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 f5781bcb4..85166e0ec 100644
--- a/include/global.h
+++ b/include/global.h
@@ -98,7 +98,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)