mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04:00
main/client: simplify code for printing --version string
This commit is contained in:
parent
d48a1c53f5
commit
eb9357709b
5 changed files with 42 additions and 68 deletions
30
foot-features.c
Normal file
30
foot-features.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#include "foot-features.h"
|
||||
#include "version.h"
|
||||
|
||||
const char version_and_features[] =
|
||||
"version: " FOOT_VERSION
|
||||
|
||||
#if defined(FOOT_PGO_ENABLED) && FOOT_PGO_ENABLED
|
||||
" +pgo"
|
||||
#else
|
||||
" -pgo"
|
||||
#endif
|
||||
|
||||
#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED
|
||||
" +ime"
|
||||
#else
|
||||
" -ime"
|
||||
#endif
|
||||
|
||||
#if defined(FOOT_GRAPHEME_CLUSTERING) && FOOT_GRAPHEME_CLUSTERING
|
||||
" +graphemes"
|
||||
#else
|
||||
" -graphemes"
|
||||
#endif
|
||||
|
||||
#if !defined(NDEBUG)
|
||||
" +assertions"
|
||||
#else
|
||||
" -assertions"
|
||||
#endif
|
||||
;
|
||||
Loading…
Add table
Add a link
Reference in a new issue