blob: ceebcb940f8c4b7fc7389becb3c0e17c0f8512dc (
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
|
#include "../core/slang-basic.h"
#include "../core/slang-array-view.h"
#include "../core/slang-blob.h"
#ifdef SLANG_EMBED_CORE_MODULE
static const uint8_t g_coreModule[] =
{
# include "slang-core-module-generated.h"
};
static Slang::StaticBlob g_coreModuleBlob((const void*)g_coreModule, sizeof(g_coreModule));
SLANG_API ISlangBlob* slang_getEmbeddedCoreModule()
{
return &g_coreModuleBlob;
}
#else
SLANG_API ISlangBlob* slang_getEmbeddedCoreModule()
{
return nullptr;
}
#endif
|