diff options
Diffstat (limited to 'source/core/slang-platform.h')
| -rw-r--r-- | source/core/slang-platform.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/core/slang-platform.h b/source/core/slang-platform.h index c3ad1c486..767e83c1d 100644 --- a/source/core/slang-platform.h +++ b/source/core/slang-platform.h @@ -128,6 +128,9 @@ namespace Slang /// True if the kind is part of the family static bool isFamily(PlatformFamily family, PlatformKind kind) { return (getPlatformFlags(family) & (PlatformFlags(1) << int(kind))) != 0; } + /// Given an environment name returns the set system variable. + /// Will return SLANG_E_NOT_FOUND if the variable is not set + static SlangResult getEnvironmentVariable(const UnownedStringSlice& name, StringBuilder& out); }; #ifndef _MSC_VER |
