aboutsummaryrefslogtreecommitdiff
path: root/foot-features.h
blob: c6c9c6f45a0c89133367f1e61c4bb9df147d8146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#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
}

static inline bool feature_wp_color_management(void)
{
#if defined(HAVE_WP_COLOR_MANAGEMENT)
    return true;
#else
    return false;
#endif
}