diff options
| author | tmk <nobody@nowhere> | 2013-11-21 23:23:57 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-11-21 23:23:57 +0900 |
| commit | 4e5bce22deeee879d063f8e4fa8fe7aa087bd57e (patch) | |
| tree | b81680729eb53090da9a63812d936b18d26c3366 /common/action_code.h | |
| parent | 4e7ec43c3f52e7588807389d6f8e5fd810b36286 (diff) | |
| download | qmk_firmware-4e5bce22deeee879d063f8e4fa8fe7aa087bd57e.tar.gz qmk_firmware-4e5bce22deeee879d063f8e4fa8fe7aa087bd57e.zip | |
Add parenthses ito macro arguments
Diffstat (limited to 'common/action_code.h')
| -rw-r--r-- | common/action_code.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/action_code.h b/common/action_code.h index c153838f2..b08d36124 100644 --- a/common/action_code.h +++ b/common/action_code.h | |||
| @@ -207,10 +207,10 @@ enum mods_codes { | |||
| 207 | MODS_ONESHOT = 0x00, | 207 | MODS_ONESHOT = 0x00, |
| 208 | }; | 208 | }; |
| 209 | #define ACTION_KEY(key) ACTION(ACT_MODS, (key)) | 209 | #define ACTION_KEY(key) ACTION(ACT_MODS, (key)) |
| 210 | #define ACTION_MODS(mods) ACTION(ACT_MODS, (mods&0x1f)<<8 | 0) | 210 | #define ACTION_MODS(mods) ACTION(ACT_MODS, ((mods)&0x1f)<<8 | 0) |
| 211 | #define ACTION_MODS_KEY(mods, key) ACTION(ACT_MODS, (mods&0x1f)<<8 | (key)) | 211 | #define ACTION_MODS_KEY(mods, key) ACTION(ACT_MODS, ((mods)&0x1f)<<8 | (key)) |
| 212 | #define ACTION_MODS_TAP_KEY(mods, key) ACTION(ACT_MODS_TAP, (mods&0x1f)<<8 | (key)) | 212 | #define ACTION_MODS_TAP_KEY(mods, key) ACTION(ACT_MODS_TAP, ((mods)&0x1f)<<8 | (key)) |
| 213 | #define ACTION_MODS_ONESHOT(mods) ACTION(ACT_MODS_TAP, (mods&0x1f)<<8 | MODS_ONESHOT) | 213 | #define ACTION_MODS_ONESHOT(mods) ACTION(ACT_MODS_TAP, ((mods)&0x1f)<<8 | MODS_ONESHOT) |
| 214 | 214 | ||
| 215 | 215 | ||
| 216 | /* | 216 | /* |
