features: +/-ucurl

This commit is contained in:
kraftwerk28 2022-07-30 11:58:28 +03:00
parent b1fe241215
commit f1f46edc7d
3 changed files with 15 additions and 4 deletions

View file

@ -67,12 +67,13 @@ version_and_features(void)
{
static char buf[256];
snprintf(buf, sizeof(buf),
"version: %s %cpgo %cime %cgraphemes %cassertions",
"version: %s %cpgo %cime %cgraphemes %cassertions %cucurl",
FOOT_VERSION,
feature_pgo() ? '+' : '-',
feature_ime() ? '+' : '-',
feature_graphemes() ? '+' : '-',
feature_assertions() ? '+' : '-');
feature_assertions() ? '+' : '-',
feature_ext_underline() ? '+' : '-');
return buf;
}

View file

@ -37,3 +37,12 @@ static inline bool feature_graphemes(void)
return false;
#endif
}
static inline bool feature_ext_underline(void)
{
#if FOOT_EXT_UNDERLINE
return true;
#else
return false;
#endif
}

5
main.c
View file

@ -53,12 +53,13 @@ version_and_features(void)
{
static char buf[256];
snprintf(buf, sizeof(buf),
"version: %s %cpgo %cime %cgraphemes %cassertions",
"version: %s %cpgo %cime %cgraphemes %cassertions %cucurl",
FOOT_VERSION,
feature_pgo() ? '+' : '-',
feature_ime() ? '+' : '-',
feature_graphemes() ? '+' : '-',
feature_assertions() ? '+' : '-');
feature_assertions() ? '+' : '-',
feature_ext_underline() ? '+' : '-');
return buf;
}