MCPcopy Create free account
hub / github.com/boostorg/build / executable_path

Function executable_path

src/engine/jam.cpp:719–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717# define WIN32_LEAN_AND_MEAN
718# include <windows.h>
719char * executable_path( char const * argv0 )
720{
721 char buf[ 1024 ];
722 DWORD const ret = GetModuleFileNameA( NULL, buf, sizeof( buf ) );
723 return ( !ret || ret == sizeof( buf ) ) ? NULL : strdup( buf );
724}
725#elif defined(__APPLE__) /* Not tested */
726# include <mach-o/dyld.h>
727char *executable_path( char const * argv0 )

Callers 4

builtin_self_pathFunction · 0.85
bootstrapMethod · 0.85
debug_parent_run_printFunction · 0.85
debug_start_childFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected