aboutsummaryrefslogtreecommitdiff
path: root/evspy-core.h
diff options
context:
space:
mode:
Diffstat (limited to 'evspy-core.h')
-rw-r--r--evspy-core.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/evspy-core.h b/evspy-core.h
index 49da4b5..6cbe913 100644
--- a/evspy-core.h
+++ b/evspy-core.h
@@ -142,18 +142,13 @@
* Returns the character associated with event code c when altgr is pressed
*/
#ifdef EVS_ALTGR_ENABLED
-# define evs_altgr(c) \
- ({ \
- void *__vp; \
- char __c; \
- __vp = khm_get(ahm, (c)); \
- if (__vp) __c = *(char *)__vp; \
- else __c = map[c]; \
- __c; \
- })
-#else
-# define evs_altgr(c) \
+#define evs_altgr(c) \
({ \
- (c); \
- })
+ void *__vp; \
+ char __c; \
+ __vp = khm_get(ahm, (c)); \
+ if (__vp) __c = *(char *)__vp; \
+ else __c = map[c]; \
+ __c; \
+})
#endif