mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-16 05:34:00 -04:00
features: include compile-time enable/disable state of features when printing version
This commit is contained in:
parent
2078e1675d
commit
77bc7c8b2c
4 changed files with 37 additions and 3 deletions
12
foot-features.h
Normal file
12
foot-features.h
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue