MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / GetCurrentExecutableDirectory

Function GetCurrentExecutableDirectory

source/test/gtest/src/gtest.cc:6805–6808  ·  view source on GitHub ↗

Returns the directory path (including terminating separator) of the current executable as derived from argv[0].

Source from the content-addressed store, hash-verified

6803// Returns the directory path (including terminating separator) of the current
6804// executable as derived from argv[0].
6805static std::string GetCurrentExecutableDirectory() {
6806 internal::FilePath argv_0(internal::GetArgvs()[0]);
6807 return argv_0.RemoveFileName().string();
6808}
6809#endif
6810
6811std::string SrcDir() {

Callers 1

SrcDirFunction · 0.85

Calls 3

GetArgvsFunction · 0.85
RemoveFileNameMethod · 0.80
stringMethod · 0.45

Tested by

no test coverage detected