MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / compileLiteral

Function compileLiteral

tests-cpp/small/test_optional_require.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace {
13
14static ProgramPtr compileLiteral(const char * src) {
15 TextPrinter tout;
16 ModuleGroup dummyLibGroup;
17 auto fAccess = make_smart<FsFileAccess>();
18 const string name = "optional_require_test.das";
19 fAccess->setFileInfo(name, make_unique<TextFileInfo>(src, uint32_t(strlen(src)), /*own*/false));
20 return compileDaScript(name, fAccess, tout, dummyLibGroup);
21}
22
23} // namespace
24

Callers 1

Calls 2

compileDaScriptFunction · 0.85
setFileInfoMethod · 0.80

Tested by

no test coverage detected