summaryrefslogtreecommitdiff
path: root/source/core/slang-io.h
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-04-23 17:19:20 -0400
committerGitHub <noreply@github.com>2019-04-23 17:19:20 -0400
commit9cb75371f5ea45640ae0e3998eb27bcda0a22cd9 (patch)
tree8e4c18099888d88860c54c0a23c5fe345f3fd4b7 /source/core/slang-io.h
parent7a71b86aadda83d16dadf809be137c7551f31464 (diff)
Feature/premake build (#951)
* * Remove Makefile * Document how to create build using premake5 * Added support for finding the executable path * If binDir not set on command line use the executable path * Fix getting exe path on linux. * Removed CalcExecutablePath from Path:: interface, made implementation internal. * Documentation improvements. * Fixes based on review * Fix some typos * Removed unused/needed global
Diffstat (limited to 'source/core/slang-io.h')
-rw-r--r--source/core/slang-io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/core/slang-io.h b/source/core/slang-io.h
index 177671442..654a88d1a 100644
--- a/source/core/slang-io.h
+++ b/source/core/slang-io.h
@@ -50,6 +50,11 @@ namespace Slang
static SlangResult GetPathType(const String & path, SlangPathType* pathTypeOut);
static SlangResult GetCanonical(const String & path, String& canonicalPathOut);
+
+ /// Returns the executable path
+ /// @return The path in platform native format. Returns empty string if failed.
+ static String GetExecutablePath();
+
};
}