factor/vm/os-netbsd.cpp

17 lines
204 B
C++
Raw Normal View History

2009-05-02 05:04:19 -04:00
#include "master.hpp"
2009-05-04 02:46:13 -04:00
namespace factor
{
2009-05-02 05:04:19 -04:00
extern int main();
const char *vm_executable_path(void)
{
static Dl_info info = {0};
if (!info.dli_fname)
dladdr(main, &info);
return info.dli_fname;
}
2009-05-04 02:46:13 -04:00
}