diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2024-10-25 10:14:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-25 10:14:22 -0700 |
| commit | 4bad669bbc5ec3ff77321f083c59cde87eb10229 (patch) | |
| tree | bf0abc916692cf34e804469bba400f2b04172472 /source/core/slang-test-tool-util.h | |
| parent | ef40d3044cf75ec3d7b24a43257fa744b45274f9 (diff) | |
Replace stdlib on Slang API with CoreModule (#5405)
This is a breaking change in a way that the Slang API function names are changed. All of them are commented as "experimental" and we wouldn't provide a back-ward compatibility for them.
Following functions are renamed:
compileStdLib() -> compileCoreModule()
loadStdLib() -> loadCoreModule()
saveStdLib() -> saveCoreModule()
slang_createGlobalSessionWithoutStdLib() -> slang_createGlobalSessionWithoutCoreModule()
slang_getEmbeddedStdLib() -> slang_getEmbeddedCoreModule()
hasDeferredStdLib() -> hasDeferredCoreModule()
Following command-line arguments are renamed:
"-load-stdlib" -> "-load-core-module"
"-save-stdlib" -> "-save-core-module"
"-save-stdlib-bin-source" -> "-save-core-module-bin-source"
"-compile-stdlib" -> "-compile-core-module"
Diffstat (limited to 'source/core/slang-test-tool-util.h')
| -rw-r--r-- | source/core/slang-test-tool-util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/slang-test-tool-util.h b/source/core/slang-test-tool-util.h index 03f3b768e..967dc0fa8 100644 --- a/source/core/slang-test-tool-util.h +++ b/source/core/slang-test-tool-util.h @@ -64,8 +64,8 @@ struct TestToolUtil /// Sets the default preludes on the session based on the executable path static SlangResult setSessionDefaultPreludeFromExePath(const char* exePath, slang::IGlobalSession* session); - /// Returns true if the StdLib should not be initialized immediately (eg when doing a -load-stdlib). - static bool hasDeferredStdLib(Index numArgs, const char*const* args); + /// Returns true if the core module should not be initialized immediately (eg when doing a -load-core-module). + static bool hasDeferredCoreModule(Index numArgs, const char*const* args); static SlangResult getDllDirectoryPath(const char* exePath, String& outDllDirectoryPath); }; |
