mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
57 lines
870 B
C
57 lines
870 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
static inline bool feature_assertions(void)
|
|
{
|
|
#if defined(NDEBUG)
|
|
return false;
|
|
#else
|
|
return true;
|
|
#endif
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
static inline bool feature_xdg_toplevel_icon(void)
|
|
{
|
|
#if defined(HAVE_XDG_TOPLEVEL_ICON)
|
|
return true;
|
|
#else
|
|
return false;
|
|
#endif
|
|
}
|
|
|
|
static inline bool feature_xdg_system_bell(void)
|
|
{
|
|
#if defined(HAVE_XDG_SYSTEM_BELL)
|
|
return true;
|
|
#else
|
|
return false;
|
|
#endif
|
|
}
|