There is no cross platform way that I know.
For Linux: pass "/proc/self/exe"
to std::filesystem::canonical
or readlink
.
Windows: pass NULL as the module handle to GetModuleFileName
.
There is no cross platform way that I know.
For Linux: pass "/proc/self/exe"
to std::filesystem::canonical
or readlink
.
Windows: pass NULL as the module handle to GetModuleFileName
.