From 77bc7c8b2c61c9eb166fa0050be0b53270475e97 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 4 Dec 2020 18:57:49 +0100 Subject: features: include compile-time enable/disable state of features when printing version --- foot-features.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 foot-features.h (limited to 'foot-features.h') 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 + +static inline bool feature_ime(void) +{ +#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED + return true; +#else + return false; +#endif +} -- cgit v1.3