Shave 8 bytes by forcing isLayerShift inline

pull/1047/head
Jesse Vincent 4 years ago
parent 0dd2ca17d8
commit 43de5b6eab
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -221,7 +221,7 @@ class Key {
// they are used chorded to change the result of typing those other
// keys. They're even more similar to `shift` keys. For both reasons, it's
// worth singling them out.
constexpr bool isLayerShift() const {
constexpr bool __attribute__((always_inline)) isLayerShift() const {
return (isLayerKey() &&
keyCode_ >= LAYER_SHIFT_OFFSET &&
keyCode_ < LAYER_MOVE_OFFSET);

Loading…
Cancel
Save