features: include compile-time enable/disable state of features when printing version

This commit is contained in:
Daniel Eklöf 2020-12-04 18:57:49 +01:00
parent 2078e1675d
commit 77bc7c8b2c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 37 additions and 3 deletions

12
foot-features.h Normal file
View file

@ -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
}