Remove ifdefs for UC and X/XP too (#12131)

This commit is contained in:
Ryan 2021-03-06 19:50:01 +11:00 committed by GitHub
parent 23d6ca9942
commit 9c94de070a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -838,15 +838,11 @@ enum quantum_keycodes {
#define KC_HYPR HYPR(KC_NO) #define KC_HYPR HYPR(KC_NO)
#define KC_MEH MEH(KC_NO) #define KC_MEH MEH(KC_NO)
#ifdef UNICODE_ENABLE // UNICODE_ENABLE - Allows Unicode input up to 0x7FFF
// Allows Unicode input up to 0x7FFF #define UC(c) (QK_UNICODE | (c))
# define UC(c) (QK_UNICODE | (c)) // UNICODEMAP_ENABLE - Allows Unicode input up to 0x10FFFF, requires unicode_map
#endif #define X(i) (QK_UNICODEMAP | (i))
#ifdef UNICODEMAP_ENABLE #define XP(i, j) (QK_UNICODEMAP_PAIR | ((i)&0x7F) | (((j)&0x7F) << 7)) // 127 max i and j
// Allows Unicode input up to 0x10FFFF, requires unicode_map
# define X(i) (QK_UNICODEMAP | (i))
# define XP(i, j) (QK_UNICODEMAP_PAIR | ((i)&0x7F) | (((j)&0x7F) << 7)) // 127 max i and j
#endif
#define UC_MOD UNICODE_MODE_FORWARD #define UC_MOD UNICODE_MODE_FORWARD
#define UC_RMOD UNICODE_MODE_REVERSE #define UC_RMOD UNICODE_MODE_REVERSE