From a810aa31f5f366d69e67be96c169fec7d6041df7 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 7 Mar 2024 17:28:19 -0800 Subject: Link-time constant and linkage API improvements. (#3708) * Link-time constant and linkage API improvements. * Fix. * Allow module name to be empty. * Fix. * Fix. * Fix compile error. --- slang.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'slang.h') diff --git a/slang.h b/slang.h index 1547ca552..fc242dbf1 100644 --- a/slang.h +++ b/slang.h @@ -4649,6 +4649,14 @@ namespace slang */ virtual SLANG_NO_THROW bool SLANG_MCALL isBinaryModuleUpToDate( const char* modulePath, slang::IBlob* binaryModuleBlob) = 0; + + /** Load a module from a string. + */ + virtual SLANG_NO_THROW IModule* SLANG_MCALL loadModuleFromSourceString( + const char* moduleName, + const char* path, + const char* string, + slang::IBlob** outDiagnostics = nullptr) = 0; }; #define SLANG_UUID_ISession ISession::getTypeGuid() -- cgit v1.2.3