summaryrefslogtreecommitdiff
path: root/source/core/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/platform.h')
-rw-r--r--source/core/platform.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/core/platform.h b/source/core/platform.h
index a545d139d..544ae8c16 100644
--- a/source/core/platform.h
+++ b/source/core/platform.h
@@ -47,6 +47,15 @@ namespace Slang
SharedLibrary();
};
+ struct PlatformUtil
+ {
+ /// Appends a text interpretation of a result (as defined by supporting OS)
+ /// @param res Result to produce a string for
+ /// @param builderOut Append the string produced to builderOut
+ /// @return SLANG_OK if string is found and appended. Fail otherwise. SLANG_E_NOT_IMPLEMENTED if there is no impl for this platform.
+ static SlangResult appendResult(SlangResult res, StringBuilder& builderOut);
+ };
+
#ifndef _MSC_VER
#define _fileno fileno
#define _isatty isatty