| 25 | namespace |
| 26 | { |
| 27 | wxString GetLibraryPath() |
| 28 | { |
| 29 | Dl_info info; |
| 30 | // This is a GNU extension, but it's also supported on FreeBSD, OpenBSD, macOS and Solaris. |
| 31 | if (dladdr(reinterpret_cast<const void*>(GetLibraryPath), &info)) |
| 32 | return info.dli_fname; |
| 33 | return {}; |
| 34 | } |
| 35 | } |
| 36 | #endif |
| 37 |
no outgoing calls
no test coverage detected