summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/slang.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/slang.h b/include/slang.h
index ee9fb7650..2dfee6b28 100644
--- a/include/slang.h
+++ b/include/slang.h
@@ -4415,6 +4415,10 @@ SLANG_API ISlangBlob* slang_getEmbeddedCoreModule();
*/
SLANG_EXTERN_C SLANG_API void slang_shutdown();
+/* Return the last signaled internal error message.
+ */
+SLANG_EXTERN_C SLANG_API const char* slang_getLastInternalErrorMessage();
+
namespace slang
{
inline SlangResult createGlobalSession(slang::IGlobalSession** outGlobalSession)
@@ -4425,6 +4429,10 @@ inline void shutdown()
{
slang_shutdown();
}
+inline const char* getLastInternalErrorMessage()
+{
+ return slang_getLastInternalErrorMessage();
+}
} // namespace slang
#endif // C++ helpers