diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-12-04 17:57:49 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-12-07 19:44:11 +0000 |
| commit | 77bc7c8b2c61c9eb166fa0050be0b53270475e97 (patch) | |
| tree | 32e009b87b717726c7051f2a5cad098266fa0a0b /foot-features.h | |
| parent | render: ime: draw a ‘bar’ cursor when the pre-edit cursor’s begin == end (diff) | |
features: include compile-time enable/disable state of features when printing version
Diffstat (limited to 'foot-features.h')
| -rw-r--r-- | foot-features.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/foot-features.h b/foot-features.h new file mode 100644 index 00000000..8da22f6c --- /dev/null +++ b/foot-features.h @@ -0,0 +1,12 @@ +#pragma once + +#include <stdbool.h> + +static inline bool feature_ime(void) +{ +#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED + return true; +#else + return false; +#endif +} |
