blob: 4bbc7f91e4055933e1bbd74d41644feb02d88099 (
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
|
#include "../core/slang-array-view.h"
#include "../core/slang-basic.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
|