blob: 83e4a8c700e561010318724b0b640730f907300a (
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_STDLIB
static const uint8_t g_coreModule[] =
{
# include "slang-stdlib-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
|