MCPcopy Create free account
hub / github.com/DragonJoker/RenderGraph / getExecutableDirectory

Function getExecutableDirectory

test/BaseTest.cpp:200–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198#if defined( _WIN32 )
199
200 std::string getExecutableDirectory()
201 {
202 std::string result;
203 std::array< char, FILENAME_MAX > path{};
204
205 if ( DWORD res = ::GetModuleFileNameA( nullptr
206 , path.data()
207 , sizeof( path ) ) )
208 {
209 result = path.data();
210 }
211
212 result = getPath( result ) + PathSeparator;
213 return result;
214 }
215
216#elif defined( __APPLE__ )
217

Callers 1

LogStreambufMethod · 0.85

Calls 2

getPathFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected