MCPcopy Create free account
hub / github.com/KDAB/GammaRay / findMeInternal

Function findMeInternal

common/selflocator.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include <dlfcn.h>
26
27static QString findMeInternal()
28{
29 Dl_info info;
30 if (dladdr(reinterpret_cast<void *>(&SelfLocator::findMe), &info) == 0)
31 return QString();
32 if (!info.dli_fname)
33 return QString();
34 return QString::fromLocal8Bit(info.dli_fname);
35}
36
37#else
38

Callers 1

findMeMethod · 0.85

Calls 1

QStringClass · 0.50

Tested by

no test coverage detected