summaryrefslogtreecommitdiff
path: root/source/core/slang-platform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-platform.cpp')
-rw-r--r--source/core/slang-platform.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/core/slang-platform.cpp b/source/core/slang-platform.cpp
index 921c85612..dc2d563df 100644
--- a/source/core/slang-platform.cpp
+++ b/source/core/slang-platform.cpp
@@ -289,6 +289,14 @@ static const PlatformFlags s_familyFlags[int(PlatformFamily::CountOf)] =
return s_familyFlags[int(family)];
}
-
+/* static */SlangResult PlatformUtil::outputDebugMessage(const char* text)
+{
+#ifdef _WIN32
+ OutputDebugStringA(text);
+ return SLANG_OK;
+#else
+ return SLANG_E_NOT_AVAILABLE;
+#endif
+}
}