Return the path of the running executable.
Declared in <mrdocs/Support/Process.hpp>
std::string
executablePath(
std::string_view argv0,
void* mainAddress);
The absolute path, or an empty string if it cannot be found.
| Name | Description |
|---|---|
| argv0 | The first element of argv, used when the system cannot tell where the executable is. |
| mainAddress | The address of a function in the executable, used the same way. |