| 46 | |
| 47 | |
| 48 | static void* getSymbol(void* handle, const char* name) { |
| 49 | if (!handle) |
| 50 | return NULL; |
| 51 | |
| 52 | #if defined ARCH_WIN |
| 53 | return (void*) GetProcAddress((HMODULE) handle, name); |
| 54 | #else |
| 55 | return dlsym(handle, name); |
| 56 | #endif |
| 57 | } |
| 58 | |
| 59 | /** Returns library handle */ |
| 60 | static void* loadLibrary(std::string libraryPath) { |
no outgoing calls
no test coverage detected