Lines Matching refs:library
365 // When loading the library, we use RTLD_LAZY so that not all symbols have to be
392 static inline void loader_platform_close_library(loader_platform_dl_handle library) {
394 dlclose(library);
396 (void)library;
399 static inline void *loader_platform_get_proc_address(loader_platform_dl_handle library, const char *name) {
400 assert(library);
402 return dlsym(library, name);
544 // Try loading the library the original way first.
554 (void)snprintf(errorMsg, 511, "Failed to open dynamic library \"%s\" with error %lu", libPath, GetLastError());
557 static inline void loader_platform_close_library(loader_platform_dl_handle library) {
559 FreeLibrary(library);
561 (void)library;
564 static inline void *loader_platform_get_proc_address(loader_platform_dl_handle library, const char *name) {
565 assert(library);
567 return (void *)GetProcAddress(library, name);
571 (void)snprintf(errorMsg, 119, "Failed to find function \"%s\" in dynamic library", name);