mrdocs::executablePath

Return the path of the running executable.

Synopsis

Declared in <mrdocs/Support/Process.hpp>

std::string
executablePath(
    std::string_view argv0,
    void* mainAddress);

Return Value

The absolute path, or an empty string if it cannot be found.

Parameters

NameDescription
argv0The first element of argv, used when the system cannot tell where the executable is.
mainAddressThe address of a function in the executable, used the same way.