foot/client: version info: add +/- assertions

This commit is contained in:
Daniel Eklöf 2021-10-23 15:40:54 +02:00
parent db2529159c
commit 3155ab45fe
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 15 additions and 4 deletions

View file

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