foot/foot-features.h
Daniel Eklöf 4ea7c5b63f
features: add feature_graphemes()
Returns true if we’re compiled with grapheme shaping support, false
otherwise.
2021-06-24 17:50:04 +02:00

30 lines
477 B
C

#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
}
static inline bool feature_pgo(void)
{
#if defined(FOOT_PGO_ENABLED) && FOOT_PGO_ENABLED
return true;
#else
return false;
#endif
}
static inline bool feature_graphemes(void)
{
#if defined(FOOT_GRAPHEME_CLUSTERING) && FOOT_GRAPHEME_CLUSTERING
return true;
#else
return false;
#endif
}