summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h8
1 files changed, 8 insertions, 0 deletions
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()