File size: 744 Bytes
f624173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
// Generated by scripts/ui-assets.cmake - do not edit.

#include "ui.h"

@ASSET_ARRAYS@
#if defined(LLAMA_UI_HAS_ASSETS)
static const std::array<llama_ui_asset, @N_ASSETS@> g_assets = {{
@ASSET_TABLE@
}};
#endif

const llama_ui_asset * llama_ui_find_asset(const std::string & name) {
#if defined(LLAMA_UI_HAS_ASSETS)
    for (const auto & a : g_assets) {
        if (a.name == name) {
            return &a;
        }
    }
#else
    (void) name;
#endif
    return nullptr;
}

const std::array<llama_ui_asset, @N_ASSETS@> & llama_ui_get_assets() {
#if defined(LLAMA_UI_HAS_ASSETS)
    return g_assets;
#else
    static const std::array<llama_ui_asset, 0> empty{};
    return empty;
#endif
}

bool llama_ui_use_gzip() {
    return @USE_GZIP@;
}